Garners Workshop
New member
- Local time
- Today, 02:18
- Joined
- Jun 4, 2014
- Messages
- 4
Hi I have built a working database in Access 2007 not using SQL server.
I have upgraded to Access 2013 Office
Tis code to create and save worked now makes error 91 please help.
Call Shell("explorer.exe " & "C:\Allfiles\Job Template\Job Template.xlsm", vbNormalFocus)
Dim xlBook As Object
Dim xlApp As Object
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Application.activeworkbook
xlApp.Application.activeworkbook.saveas ("C:\Allfiles\Jobs\") & [Job No] & (".") & [Job Name] & ("\Costs") & (" ") & [Job Name]
MsgBox "Work Book saved!"
Resulting error
Runtime error '91'
object variable or with block variable not set
I have upgraded to Access 2013 Office
Tis code to create and save worked now makes error 91 please help.
Call Shell("explorer.exe " & "C:\Allfiles\Job Template\Job Template.xlsm", vbNormalFocus)
Dim xlBook As Object
Dim xlApp As Object
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Application.activeworkbook
xlApp.Application.activeworkbook.saveas ("C:\Allfiles\Jobs\") & [Job No] & (".") & [Job Name] & ("\Costs") & (" ") & [Job Name]
MsgBox "Work Book saved!"
Resulting error
Runtime error '91'
object variable or with block variable not set