MobiusDick
Hippy Materialist
- Local time
- Today, 11:18
- Joined
- Aug 23, 2007
- Messages
- 23
This forecasting tool is turning out to be quite a lot of hassle.
Have written a sub within a module which makes the user answer a specific set of questions before the sub transfers an excel sheet to a table- I have used this sub before with no problems (albeit in form modules rather than standard modules but nonetheless the same code)- however, when I run it now I get the error:
"Object Variable or With Block Variable not set"
at the line:
I have tried declaring xlApp in the sub, at the start of the module and as a public variable to no avail.
Any suggestions?
Have written a sub within a module which makes the user answer a specific set of questions before the sub transfers an excel sheet to a table- I have used this sub before with no problems (albeit in form modules rather than standard modules but nonetheless the same code)- however, when I run it now I get the error:
"Object Variable or With Block Variable not set"
at the line:
Code:
xlApp = "C:\Documents and Settings\All Users\Start Menu\Programs\Microsoft Excel"
I have tried declaring xlApp in the sub, at the start of the module and as a public variable to no avail.
Any suggestions?