C
C Brandt
I have a problem creating a name using VBA. The problem is the generation of
the WorkSheet Name.
The line of code that generates the name is:
ActiveWorkbook.Names.Add Name:=IndName, RefersToR1C1:="=" & WSName &
"!R2C1:R" & MaxRng & "C120"
When viewed with the "Watch" feature in VBA, the WSName is equal to "12-07"
at the time of execution.
When viewing the results in Excel under the menu item Insert/Name/Define
and the Name selected, the Name "Refers to:"
=12-'07'!$A$2:$DP$455
it should be :
='12-07'!$A$2:$DP$455
Is there a way to get the ' in the right location?
Thanks,
Craig
the WorkSheet Name.
The line of code that generates the name is:
ActiveWorkbook.Names.Add Name:=IndName, RefersToR1C1:="=" & WSName &
"!R2C1:R" & MaxRng & "C120"
When viewed with the "Watch" feature in VBA, the WSName is equal to "12-07"
at the time of execution.
When viewing the results in Excel under the menu item Insert/Name/Define
and the Name selected, the Name "Refers to:"
=12-'07'!$A$2:$DP$455
it should be :
='12-07'!$A$2:$DP$455
Is there a way to get the ' in the right location?
Thanks,
Craig