Hi I want to run "Text to Coulmns" on around 700 columns. How do I get VBA to do this. I can record the macro for one column but cannot get it to do multiple columns as below.
Please Login or Register to view this content.
Hi I want to run "Text to Coulmns" on around 700 columns. How do I get VBA to do this. I can record the macro for one column but cannot get it to do multiple columns as below.
Please Login or Register to view this content.
Last edited by phillb; 05-26-2011 at 03:32 AM.
On 31st post please ensure that you are using code tags.
regards
johnjohns
When you are not sure where to go, every road takes you there!
Hi philib,
What John means is that you need to EDIT your post and then click on "Go Advanced". Select the code and click on the "#" icon above the message area. This will put code tags around the code so we can read it better.
Now, after you do the above....
Did you know that you can use numbers instead of letters for Columns()?
is the exact same asPlease Login or Register to view this content.
Does that help? If you need to work through a bunch of columns how about a For Next LoopPlease Login or Register to view this content.
Please Login or Register to view this content.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Hi Marvin,
I have tried to alter the macro as suggested but don't think I am doing it right. I need to do columns 3 to 410.
Please Login or Register to view this content.
you forgot the for line:
Please Login or Register to view this content.
Hi I have entered this, it does seem to highlight and scroll through all of the columns but it does not seem to be working. Could the ("c1") in line 4 be affecting it??
yes it could you should replace it by
Please Login or Register to view this content.
Sorry to be a pain. I have enteredthis and it comes up with "compile error: Argument not optional"
sorry my mistake
not
justPlease Login or Register to view this content.
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks