Hi,
I need a vba code for selecting the last column with data in the file and copying it to a different column in a different sheet : sheet 3 column A
thanks
Hi,
I need a vba code for selecting the last column with data in the file and copying it to a different column in a different sheet : sheet 3 column A
thanks
Last edited by Abroza; 09-22-2009 at 07:56 AM.
Hi,
Is the last column in the file always the same?
If so, which column is it?
Assuming your selection range is B1:B50
Please Login or Register to view this content.
Try this
Please Login or Register to view this content.
Shijesh Kumar
http://shijesh.wordpress.com/
the column isn't the same, it changes so I can't use the code you gave me.
I tryed this code, I don't know why but it select the first column with data (A) and no the last one,
can someonee look at this and help:
thanksPlease Login or Register to view this content.
in the above code End(xlToLeft) has to be changed to End(xlToRight), but it will give you the last column of your sheet.Please Login or Register to view this content.
you will have to specify the usedrange of the sheet to get the desired output.
Abroza,
I executed the code, that you have posted and found that it works fine.
Do not replace left to right.
Vijay
for me it still selects the first column A, all the way to the last row, instead of selecting the last column all the way to the last row!
any suggestions?
Abroze,
I found that Shijesh Kumar's code does what you need.
Check it out.
Vijay
please attach the work book you are using.
I found the problem, something was messed up with my data in my workbook and it couldn't identify the last column, now it work great with my code!
thanks!
Arboze,
Mark your post solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks