Hi
I am using some VBA from ACcess 2003 to export data to Excel 2003.
I then run some tidying up code, which I have created by recording a macro in Excel 2003 and then pasting the code back to Access.
Unfortunately stuff like this doesn't work:
ActiveCell.FormulaR1C1 = "1"
Range("H2").Select
It errors in Access. I have to change the code to:
Range("H2").Value = "1"
Range("H2").Select
etc.
I have added the Excel 11.0 library and Office 11.0 library. AM I missing another reference or does the macro code from Excel not translate well with Access - it's all standard VBA isn't it ?
I am using some VBA from ACcess 2003 to export data to Excel 2003.
I then run some tidying up code, which I have created by recording a macro in Excel 2003 and then pasting the code back to Access.
Unfortunately stuff like this doesn't work:
ActiveCell.FormulaR1C1 = "1"
Range("H2").Select
It errors in Access. I have to change the code to:
Range("H2").Value = "1"
Range("H2").Select
etc.
I have added the Excel 11.0 library and Office 11.0 library. AM I missing another reference or does the macro code from Excel not translate well with Access - it's all standard VBA isn't it ?