3 W7Pro PCs Peer to Peer with one Shared Folder on the PC with Office 2010
Office 2010
Office 2003
Office 2003
1 MS ACCESS 2003 mdb Application Backend Shared
maintains data used in Spreadsheet
1 MS EXCEL 2003 xls Workbook Shared
5 of 6 Sheets Protected ... all 5 automatically get their data from unprotected sheet
Attempted to directly update cells in the Shared unprotected Worksheet using a MS OFFICE EXCEL OBJECT but the object save is returning a 1004 Error ... not sure if this is a mixed version issue, a sharing issue or other ... doesn't appear to matter if the Shared Excel Workbook is already open or closed ... I have used the same object logic in this Access App to successfully create NEW workbooks from templates so not sure why there is an error for what seems to be a text book save request ... I made EXCEL visible to see if that would shed any light but Excel just hangs and never even gets to the error message
The ultimate goal is not to have to reenter data
- the ACCESS Application gets its info from Outlook attachments, (Website form data) and populates a temporary record which needs human review (a person on any one of the 3 PC's) ... once reviewed a token is assigned ... this token and the Web Data must link to data existing on the unprotected worksheet ... ultimately I am looking for some way to either update this worksheet once a token is assigned OR provide a way for the Spreadsheet to automatically see the Token located in the Access Database
I get that even in a shared mode there is a complexity with random writes to the spreadsheet ... so ... wondering if maybe a Cell might be able to link via a dblookup or query to data in access? Could possibly add VBA Code to Excel that would update the cell value (but then see there was some note to the effect that MACROS/VBA is not available in SHARED Workbooks?)
Current update code that causes the 1004 error
Office 2010
Office 2003
Office 2003
1 MS ACCESS 2003 mdb Application Backend Shared
maintains data used in Spreadsheet
1 MS EXCEL 2003 xls Workbook Shared
5 of 6 Sheets Protected ... all 5 automatically get their data from unprotected sheet
Attempted to directly update cells in the Shared unprotected Worksheet using a MS OFFICE EXCEL OBJECT but the object save is returning a 1004 Error ... not sure if this is a mixed version issue, a sharing issue or other ... doesn't appear to matter if the Shared Excel Workbook is already open or closed ... I have used the same object logic in this Access App to successfully create NEW workbooks from templates so not sure why there is an error for what seems to be a text book save request ... I made EXCEL visible to see if that would shed any light but Excel just hangs and never even gets to the error message
The ultimate goal is not to have to reenter data
- the ACCESS Application gets its info from Outlook attachments, (Website form data) and populates a temporary record which needs human review (a person on any one of the 3 PC's) ... once reviewed a token is assigned ... this token and the Web Data must link to data existing on the unprotected worksheet ... ultimately I am looking for some way to either update this worksheet once a token is assigned OR provide a way for the Spreadsheet to automatically see the Token located in the Access Database
I get that even in a shared mode there is a complexity with random writes to the spreadsheet ... so ... wondering if maybe a Cell might be able to link via a dblookup or query to data in access? Could possibly add VBA Code to Excel that would update the cell value (but then see there was some note to the effect that MACROS/VBA is not available in SHARED Workbooks?)
Current update code that causes the 1004 error
Code:
Function fnWS(SSID As String, WSID As String)
Dim sFN As String
Dim objApp As Object
Dim wb As Object
Dim inX As Long
Dim sX As String
Dim sZ As String
Set objApp = CreateObject("Excel.Application")
objApp.Visible = True ; both True and False have issues
sFN = "s:\shared\sharedwb.xls"
Set wb = objApp.Workbooks.Open(sFN, True, False)
lp1:
inX = inX + 1
sX = "B" & inX
sZ = wb.Sheets(2).Range(sX).Value
If sZ & "" = SSID Then
sX = "A" & inX
wb.Sheets(2).Range(sX).Value = WSID
GoTo lpe
ElseIf sZ & "" = "" Then
GoTo lpe
End If
GoTo lp1
lpe:
[b]wb.Application.activeworkbook.Save[/b]
wb.Application.activeworkbook.Close
Set wb = Nothing
Set objApp = Nothing
End Function