We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Visual Basic in Excel
aj9648
Posts: 1,388 Forumite
in Techie Stuff
Hi
This may not be the most appropriate place to post this - but is anyone any good with VB code and helping me out as I am stuck??
Sorry if this is inappropriate!!!
Thanks
AJ
This may not be the most appropriate place to post this - but is anyone any good with VB code and helping me out as I am stuck??
Sorry if this is inappropriate!!!
Thanks
AJ
0
Comments
-
Yes it's the right place... What are you stuck with?0
-
Will PM you isofa
Thanks0 -
What you could do is get a list of file names in a directory, save these into a spreadsheet, and the have VBA code step through these, to run, convert and save as CSV by your code.
You can write a subroutine to access directories, but you'll need a bit of detailed VBA knowledge to step through it all. So you could just save a directory listing in windows, paste it into a spreadsheet, and then work on that instead as the list.
you'd need to set a variable eg:
f=Dir(Directory,7)
and then loop through this saving the file names in a sheet e.g.
cells(loopcounter,1) = f
etc
Does that make sense?
I'm not in front of a machine with XL/VBA on at the moment, so I can't be more specific.
There'll be good code snippets at: www.mrexcel.com0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.7K Banking & Borrowing
- 253.8K Reduce Debt & Boost Income
- 454.6K Spending & Discounts
- 245.8K Work, Benefits & Business
- 601.8K Mortgages, Homes & Bills
- 177.7K Life & Family
- 259.7K Travel & Transport
- 1.5M Hobbies & Leisure
- 15.9K Discuss & Feedback
- 37.7K Read-Only Boards