G
Guest
I am using the following code to open or copy an excel spreadsheet within an
Access form:
Dim xl As Object
Dim wkbName As String
Dim tplName As String
wkbName = "C:\Innatech\Dynamic Database\Checklists\" & Me.JobNo &
".xls" '1
If Dir(wkbName) = "" Then
tplName = "C:\Innatech\In Progress\Dynamic Final Assembly
Checklist.xls"
FileCopy tplName, wkbName
End If
Set xl = CreateObject("Excel.application")
xl.workbooks.Open wkbName
xl.Visible = True
Is it possible to fill in certain cells on the spreadsheet from fields in
the database?
Thanks for your help!
Cindy
Access form:
Dim xl As Object
Dim wkbName As String
Dim tplName As String
wkbName = "C:\Innatech\Dynamic Database\Checklists\" & Me.JobNo &
".xls" '1
If Dir(wkbName) = "" Then
tplName = "C:\Innatech\In Progress\Dynamic Final Assembly
Checklist.xls"
FileCopy tplName, wkbName
End If
Set xl = CreateObject("Excel.application")
xl.workbooks.Open wkbName
xl.Visible = True
Is it possible to fill in certain cells on the spreadsheet from fields in
the database?
Thanks for your help!
Cindy