I need to select the cells from row 2 until a blank row is met.
There is no specific range as I intend to insert these rows in another sheet.
Any suggestions please?
I need to select the cells from row 2 until a blank row is met.
There is no specific range as I intend to insert these rows in another sheet.
Any suggestions please?
Last edited by SKhan; 12-15-2008 at 05:31 PM. Reason: solved
Maybe
VBA Noob![]()
Please Login or Register to view this content.
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
It doesn't copy the whole row, it only copies the data from row 1 column A to all the columns from the other sheet.
Change to
VBA Noob![]()
Please Login or Register to view this content.
now it copies and inserts row 25 although the first blank cell was A6
My code doesn't insert anything?copies and inserts row 25
VBA Noob
just a blank row, as I said... row 25. I can't understand why... before I entered EntireRow it copied the selection from A1:A5 but now it always copies from A25.
This is the code.
If you create a History with Track Changes you can notice that before the text "History ends...." there is always a blank row.
Edit: stupid typo was to blame... I forgot to add :A to the Range selection.![]()
Please Login or Register to view this content.
My bad.. editing the issue solved now.![]()
Please Login or Register to view this content.
Last edited by SKhan; 12-15-2008 at 05:31 PM.
By declaring the LastRow at the top then selecting the new sheet the LastRow will be that of the active sheet
Try
VBA Noob![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks