Re: Creating Name with variable
- From: "Bob Phillips" <bob.ngs@xxxxxxxxxxxxx>
- Date: Fri, 18 Jul 2008 14:54:24 +0100
I got an error in the formula. See if this sorts it
vldFormula = "=OFFSET(Data!$B$2,MATCH(Data!$I$" & numNames + 2 & _
",Data!$B$3:$B$65536,0),3,COUNTIF(Data!$B:$B,Data!$I$" &
numNames + 2 & "),1)"
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Asif" <Asif@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8F4D1DD2-52E9-4EB0-B37A-A1D129682023@xxxxxxxxxxxxxxxx
Here are the definitions of variables:
Dim vldFormula As String, sVldName As String
sVldName = WorksheetFunction.Index(vldNames, numNames, 0)
vldFormula = "=OFFSET(Data!$B$2,MATCH(Data!$I$" & numNames + 2 & _
",Data!$B$3:$B$65536,0),3,COUNTIF(Data!$B$B,Data!$I$" &
numNames + 2 & "),1)"
--
Thanx & regards,
Asif
"Bob Phillips" wrote:
What is in vldName and vldFormula?
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
"Asif" <Asif@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DD017C8C-5959-4B05-AD00-F69AC076EA10@xxxxxxxxxxxxxxxx
Hi there,
I am trying to create Names with the following statement:
ActiveWorkbook.Names.Add Name:="vld" & sVldName, RefersTo:=vldFormula
I keep getting the runtime error 1004. I will appreciate if somebody
would
help me getting round this probelm.
--
Thanx & regards,
Asif
.
- Follow-Ups:
- Re: Creating Name with variable
- From: Asif
- Re: Creating Name with variable
- References:
- Re: Creating Name with variable
- From: Bob Phillips
- Re: Creating Name with variable
- From: Asif
- Re: Creating Name with variable
- Prev by Date: Re: How can I make Excel copy and paste specific cells every 15minuts
- Next by Date: RE: Locking / Unlocking Cell with out Protection/ Unprotection of
- Previous by thread: Re: Creating Name with variable
- Next by thread: Re: Creating Name with variable
- Index(es):
Relevant Pages
|