pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi everyone!
I have made a sample code that is only for col C:C.
In row 3 i have heading that I want it to be a range name. eg like help_1 etc
Whatever word in there in row 3 for each col i want the code to pick that up and then name the range select the whole colyumn....
The code will continue to name range untill the 3 row (moving column wise to right) is empty...
Thanks alot for helping!
Pedie
Sample code below! works only for one col
I have made a sample code that is only for col C:C.
In row 3 i have heading that I want it to be a range name. eg like help_1 etc
Whatever word in there in row 3 for each col i want the code to pick that up and then name the range select the whole colyumn....
The code will continue to name range untill the 3 row (moving column wise to right) is empty...
Thanks alot for helping!
Pedie

Sample code below! works only for one col

Code:
Sub try1()
Sheet1.Select
Columns("C:C").Select
ActiveWorkbook.Names.Add Name:=Range("C3").Value, RefersToR1C1:="=Sheet1!C3"
End Sub