I have this code below which is causing a runtime error on the first row.
I have set the getfilesfrom and filenameimport as variables.
Im not sure why its happening, it opens the files fine, but then refers to a column in the spreadsheet saying it cannot find it, but the VBA does not tell it to find it?
Workbooks.Open FileName:=GetFilesFrom & FilenameImport (ERROR)
Workbooks.Open FileName:=TemplateFolder & TemplateName
Windows(FilenameImport).Activate
Worksheets.Item(3).Activate
Range("A1").Select
ActiveCell.Offset(1, 0).Select
If ActiveCell.Value = "" Then
Application.Run ("BuildContacts")
End If
Confused!
I have set the getfilesfrom and filenameimport as variables.
Im not sure why its happening, it opens the files fine, but then refers to a column in the spreadsheet saying it cannot find it, but the VBA does not tell it to find it?
Workbooks.Open FileName:=GetFilesFrom & FilenameImport (ERROR)
Workbooks.Open FileName:=TemplateFolder & TemplateName
Windows(FilenameImport).Activate
Worksheets.Item(3).Activate
Range("A1").Select
ActiveCell.Offset(1, 0).Select
If ActiveCell.Value = "" Then
Application.Run ("BuildContacts")
End If
Confused!