matt beamish
Registered User.
- Local time
- Today, 21:43
- Joined
- Sep 21, 2000
- Messages
- 215
Hi folks. I am trying to make a link between an Access form, and an Excel spreadsheet so that a user can open the spreadsheet with a button click, and initiate the Excel 'Find' function to take them to the cell containing a string lifted from form control. I need the search to run across sheets within the workbook.
The search string is 'Matrixsrch'
The location of the spreadsheet is stored in the database ('GroupsMatrixLoccntrl')
So far, the spreadsheet is opening, but I am not making any progress with the search. I have got a search working successfully with Pdfs, but not managed it with xls/xlsx.
This is what opens the spreadsheet:
Any help, as ever very appreciated.
Matt
The search string is 'Matrixsrch'
The location of the spreadsheet is stored in the database ('GroupsMatrixLoccntrl')
So far, the spreadsheet is opening, but I am not making any progress with the search. I have got a search working successfully with Pdfs, but not managed it with xls/xlsx.
This is what opens the spreadsheet:
Code:
Private Sub Command132_Click()
Dim filename As String
Dim searchstring As String
searchstring = Me.Matrixsrch
filename = Me.GroupsMatrixLoccntrl
Dim xlTmp As Excel.Application
Set xlTmp = New Excel.Application
xlTmp.Workbooks.Open filename
xlTmp.Visible = True
End Sub
Any help, as ever very appreciated.
Matt