Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a set of data arrranged in a 10x10 array.
I want to use the contents of cell (1,1) as the name for the range of cells (2,1), (3,1)..(10,1); and perform a similar operation on columns 2,3...10. I wrote the code: Sub assignames() Dim category As String For i = 1 To 10 category = Cells(1, i) Range(Cells(2, i), Cells(10, i)).Name = category Next i End Sub The debugger faults me on the line "Range....=". I guess this is some kind of mismatch of variable types. But this is my first excusrion into VBA and I am floundering. Any help appreciated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2007 Assigning Range Names in one spreadsheet/worksheet | Excel Discussion (Misc queries) | |||
Assigning numbers to names | Excel Discussion (Misc queries) | |||
Assigning range names to arrays | Excel Programming | |||
Assigning User Names | Excel Programming | |||
Assigning names to a route | Excel Programming |