Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to set named range by VBA to another workbook. Dim LR As Integer Dim I As Integer Dim J As Integer Dim WRM As Workbook Dim SDR As Worksheet Set WRM = Workbooks("RUIM new.xls") Set SDR = WRM.Sheets("Damage Receipt") For I = 1 To 12 ActiveWorkbook.Names.Add Name:=SDR.Cells(1, I).Value, _ RefersTo:=SDR.Range((Cells(1, I)), Cells(20000, I)), Visible:=True <<<ERROR Next I am getting error on the above statement. Need help. Regards, Madiya |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Named Range From One Workbook Used in Validation Drop Down in 2nd Workbook | Excel Discussion (Misc queries) | |||
Workbook named range not seen by ADO when workbook closed | Excel Programming | |||
Named Range in ANOTHER workbook | Excel Discussion (Misc queries) | |||
Named Range in ANOTHER workbook | Excel Discussion (Misc queries) | |||
Named Range in another workbook | Excel Worksheet Functions |