Your path string has a forward slash instead of a back slash. Suggest you do yourself and us these favours when posting code:
copy and paste your code to avoid typos (maybe you did that)
use code tags with proper indentation. See how this is easier to read and does not add extra spaces or in some cases, drop characters like \
Code:
Function ExportAppeals28()
Dim dbs As Database
Dim Path As String, Path1 As String
Path1 = "\NH_Appeals_tbl0028_template.xlsx"
Set dbs = CurrentDb
Set rstable =dbs.OpenRecordset("tbl0028_All_Appeals")
Set excelApp = CreateObject("Excel.application","")
excelApp.Visible = True
Set targetWorkbook =excelApp.Workbooks.Open(CurrentProject.Path & Path1)
targetWorkbook.Worksheets("Sheet1").Range("C2").CopyFromRecordset rstable
End Function
Why do you not declare four of your object variables here. Have done that at the module level?
Also, look at the copyrecordset part in your original code and compare.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.