Hi I weekly import an excel spread sheet into access but i dont need the top 4 rows. So for this is what i have written
Public Sub Command1_Click()
DoCmd.TransferSpreadsheet acImport, 9, "Training", "...Adls Roster\Training.xlsx", True
Rows("1:4").Select
Selection.Delete Shift:=xlUp
But i keep getting "Complie error: Sub or functions not defined"
what am i doing wrong
Public Sub Command1_Click()
DoCmd.TransferSpreadsheet acImport, 9, "Training", "...Adls Roster\Training.xlsx", True
Rows("1:4").Select
Selection.Delete Shift:=xlUp
But i keep getting "Complie error: Sub or functions not defined"
what am i doing wrong