T
TimT
Hey friends!!
I got a problem here that's got me stumped.. again.
I have an Excel file with pivot tables that are linked to the database that
I'm trying to open the file from and I'm having the following problems:
1. It opens the file in a ready only way (and it's not set to be that way)
2. When I try to refresh the tables sometimes it tells me that the database
has been placed in a state by user 'Admin' on machine 'MYNAME' that prevents
it from being opened or locked.
Please help!!
Below is the code I'm currently using:
Function AutomateExcelProvision()
Dim XL As Object
Dim SourceFile As String
Set XL = CreateObject("Excel.Application")
SourceFile = "C:\Excel\Reports\Provision.xls" '
XL.Workbooks.Open SourceFile
XL.Visible = True
Set XL = Nothing
End Function
I got a problem here that's got me stumped.. again.
I have an Excel file with pivot tables that are linked to the database that
I'm trying to open the file from and I'm having the following problems:
1. It opens the file in a ready only way (and it's not set to be that way)
2. When I try to refresh the tables sometimes it tells me that the database
has been placed in a state by user 'Admin' on machine 'MYNAME' that prevents
it from being opened or locked.
Please help!!
Below is the code I'm currently using:
Function AutomateExcelProvision()
Dim XL As Object
Dim SourceFile As String
Set XL = CreateObject("Excel.Application")
SourceFile = "C:\Excel\Reports\Provision.xls" '
XL.Workbooks.Open SourceFile
XL.Visible = True
Set XL = Nothing
End Function