Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
(Using XL2000) I selected a range and used InsertNameDefine to add the
name. It shows up in the Name box in the top left, and can be selected from there. I was trying to select the range using For Each nm In wkb.Names If Left(nm, 4) = "Calc" Then Set rng = Range(nm) End If but it kept coming up with an error. So I inserted a Debug.Print for every name, and the name was not there! Two questions, then: (1) How do I set the name of a range so my code will see it? (2) Since the Name belongs to the Book object, but the Range belongs to the Sheet object, am I setting the range properly? Ed |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting email address names in a range of cells to real names | Excel Worksheet Functions | |||
using the Excel generic worksheet names instead of user-given names in code | Excel Discussion (Misc queries) | |||
Sorting and matching rows of names with Socials with master list and eliminating the extra names | Excel Worksheet Functions | |||
return all worksheet tab names and chart sheet tab names in report - an example | Excel Programming | |||
Change names of files in a folder to match names in Excel Column | Excel Programming |