Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 04/05/2011 03:23 Rick Rothstein wrote:
Just out of interest, can anyone explain why I was getting the error at 'Rows("nextrow:nextrow").Select' in my original attempt? I am guessing that nextrow is a variable name... you cannot put variable names inside of quote marks... anything inside of quote marks are just characters and have no meaning to VB beyond that. The correct syntax would have been... Rows(nextrow & ":" & nextrow).Select However, the Rows property, unlike the Range property, does not need the repeated same row number to work; this would have worked also... Rows(nextrow).Select Rick Rothstein (MVP - Excel) Thanks: it works and I've learnt something new! -- F |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy rows with values in sheet 1 to next empty row in sheet2 | Excel Programming | |||
Copy Data from Sheet 1 to Empty Cell in Sheet 2 | Excel Programming | |||
Copy row to first empty row in new sheet | Excel Programming | |||
Copy row with an empty cell for each row in a sheet | Excel Discussion (Misc queries) | |||
Button to copy sheet, rename sheet sequencially. | Excel Programming |