Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Im wondering if theres away to add a named range to a specified sheet without selecting that sheet first. I can get a row count from a sheet while its not active Public MASTERwb As Workbook Sub ScaleVLU() Dim RowCnt As Integer Set MASTERwb = ActiveWorkbook MASTERwb.Sheets(abc).Select RowCnt = MASTERwb.Sheets(abc).UsedRange.Rows.Count MASTERwb.Names.Add Name:="VLU", _ RefersTo:="=" & MASTERwb.Sheets(abc).Range("A1:D" & RowCnt).Address End Sub Appreciatively, Arturo |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find in Named Range problem (2nd Try) | New Users to Excel | |||
Named Range Problem | Excel Programming | |||
Named Range name problem in validation | Excel Worksheet Functions | |||
named range problem | Excel Programming | |||
Insert named range problem | Excel Programming |