Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am working on some code that will look at each row (starting at ro 2) and define the row by the value that is on the row in column 1 until the program gets to a cell that is blank, in which the loo stops. Everything seems to be working except for one small part. keep on getting Run-time error 1004: That Name is not valid. The following is my code: Private Sub cmdCatAddSyn_Click() 'Synchronize all pages with the new category 'IN PROGRESS RCount = 2 Do Until Worksheets(1).Cells(RCount, 1).Value = "" Worksheets(1).Rows(RCount).Name = Worksheets(1).Cells(RCount, 1) RCount = RCount + 1 Loop End Sub The section of code that is always highlighted i Worksheets(1).Rows(RCount).Name=Worksheets(1).Cell s(RCount,1) All help is appreciated, and thank you in advance -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
loop through all named ranges | Excel Programming | |||
Loop through ranges | Excel Programming | |||
Loop through ranges columns | Excel Programming | |||
How to loop through all ranges in a worksheet | Excel Programming | |||
loop to name ranges | Excel Programming |