Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Range Name problem

Status
Not open for further replies.

cmz21

Programmer
May 5, 2005
110
US
Hello,
I am having a problem creating a named range using excel vba. I am using the code below, but instead of inserting the named range for cell B899, it is putting it at B1795. Anyone have any idea how this could be happening?

With xlBook
.Names.Add Name:="Count", RefersTo:="=B899", Visible:=True
End With
 


Hi,

Need the SHEET reference also...
[tt]
With xlBook
.Names.Add Name:="Count", RefersTo:="=Sheet1!B899"
End With
[/tt]


Skip,

[glasses] [red]Be advised:[/red]We know Newton's 3 Laws. But did you hear about the [red]FOURTH???[/red]
Only ONE fig per cookie![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top