Trying to write a macro to transcribe data from columns in Sheet1 to Rows in Sheet2. Assuming there is a blank between each record. I get an error on the "Set Rng1....." line.
Thanks in advancePlease Login or Register to view this content.
Trying to write a macro to transcribe data from columns in Sheet1 to Rows in Sheet2. Assuming there is a blank between each record. I get an error on the "Set Rng1....." line.
Thanks in advancePlease Login or Register to view this content.
Last edited by ChemistB; 10-07-2009 at 05:02 PM.
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
Also, your code assumes that the active sheet is Sheet1.Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Thanks shg!
That worked. I also had to changetoPlease Login or Register to view this content.
I'm not sure when "is nothing" can be used but now it's working great.Please Login or Register to view this content.
Object variables are Nothing when not initialized or explicitly set to Nothing.
A Variant (of which a cell value are one) can never be Nothing (it's not an object variable) but can be Empty.
orPlease Login or Register to view this content.
Either is better than what you have, unless you want to test explicitly for a null string, in which case you should usePlease Login or Register to view this content.
Please Login or Register to view this content.
Last edited by shg; 10-07-2009 at 05:11 PM.
Thanks again shg! As usual, your help has been invaluable.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks