Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm attempting to loop through all the columns in the UsedRange and create a
named range for each one. It loops, and all strings are correct - I just don't have any ranges when it's finished! What have I done wrong? Ed Set wb = ActiveWorkbook Set ws = wb.ActiveSheet cntCol = ws.UsedRange.Columns.Count cntRow = ws.UsedRange.Rows.Count ' Set name for each column range cntRng = 1 For i = 1 To cntCol strRng = i strAddr = ws.Name & "!C" & strRng strRng = "col" & strRng wb.Names.Add _ Name:=strRng, _ RefersToR1C1:=strAddr Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy contents of a named range to a section on working area | Excel Discussion (Misc queries) | |||
Named Range Links not working | Links and Linking in Excel | |||
My Dynamic Named Range isn't working | Excel Worksheet Functions | |||
Formula not working when letter A is used in a named range | Excel Discussion (Misc queries) | |||
Create named range | Excel Programming |