CJ
Board Regular
- Joined
- Feb 22, 2002
- Messages
- 77
Hi,
I have around 30 Macro's all designed to pick up a data files from a server import it make pivot table then E-Mail out.
All has worked very well for several years now using Excel 2002, well someone made the bold decsion to upgarde
so we have jumped to Excel 2010 yesterday,
Bad news the 1st Macro I tried today failed.
Error Message.
Microsoft Visual Basic
Run Time 'Error 1004'
The name that you entered is not valid
Reason for this:
1) The name does not begin witha letter or underscore
2) The name contains a space or other invalid character
3) The name conflicts with a Excel built in name or name of another object in the workbook
It fails at this point where it's naming the range.
'Select Active Range
ActiveWorkbook.Names.Add Name:="POP2", RefersToR1C1:= _
"=OFFSET(POP!R1C1,0,0,COUNTA(POP!C1),12)"
Has anyone else encountered this message when running OLd VBA Mascro's in Excel 2010
Any Idea's
I have around 30 Macro's all designed to pick up a data files from a server import it make pivot table then E-Mail out.
All has worked very well for several years now using Excel 2002, well someone made the bold decsion to upgarde
so we have jumped to Excel 2010 yesterday,
Bad news the 1st Macro I tried today failed.
Error Message.
Microsoft Visual Basic
Run Time 'Error 1004'
The name that you entered is not valid
Reason for this:
1) The name does not begin witha letter or underscore
2) The name contains a space or other invalid character
3) The name conflicts with a Excel built in name or name of another object in the workbook
It fails at this point where it's naming the range.
'Select Active Range
ActiveWorkbook.Names.Add Name:="POP2", RefersToR1C1:= _
"=OFFSET(POP!R1C1,0,0,COUNTA(POP!C1),12)"
Has anyone else encountered this message when running OLd VBA Mascro's in Excel 2010
Any Idea's