R
ryguy7272
I am importing several worksheets into Access Tables. The code below is a
sample of what I use now:
DoCmd.SetWarnings False
' Andy - 1
DoCmd.RunSQL ("DELETE * FROM Andy;")
DoCmd.TransferSpreadsheet acImport, 8, "Andy", "C:\Documents and
Settings\rshuell\Desktop\Access Models\Up To Access\RVP Summary.xls", True,
"Andy!A5:AB300"
' Chris - 2
DoCmd.RunSQL ("DELETE * FROM Chris;")
DoCmd.TransferSpreadsheet acImport, 8, "Chris", "C:\Documents and
Settings\rshuell\Desktop\Access Models\Up To Access\RVP Summary.xls", True,
"Chris!A5:AB300"
‘so on and so forth…
DoCmd.SetWarnings True
I am wondering how to import only the used range in each Excel sheet because
some sheets have more rows than others, and these each week. Is there a
UsedRange property for Access like there is for Excel? Something along the
lines of:
Worksheets("Sheet1").Activate
ActiveSheet.UsedRange.Select
Thanks so much!!
Ryan----
sample of what I use now:
DoCmd.SetWarnings False
' Andy - 1
DoCmd.RunSQL ("DELETE * FROM Andy;")
DoCmd.TransferSpreadsheet acImport, 8, "Andy", "C:\Documents and
Settings\rshuell\Desktop\Access Models\Up To Access\RVP Summary.xls", True,
"Andy!A5:AB300"
' Chris - 2
DoCmd.RunSQL ("DELETE * FROM Chris;")
DoCmd.TransferSpreadsheet acImport, 8, "Chris", "C:\Documents and
Settings\rshuell\Desktop\Access Models\Up To Access\RVP Summary.xls", True,
"Chris!A5:AB300"
‘so on and so forth…
DoCmd.SetWarnings True
I am wondering how to import only the used range in each Excel sheet because
some sheets have more rows than others, and these each week. Is there a
UsedRange property for Access like there is for Excel? Something along the
lines of:
Worksheets("Sheet1").Activate
ActiveSheet.UsedRange.Select
Thanks so much!!
Ryan----