02-28-2006, 08:49 AM
Try to record.
Here is my recorded macro, with comments:
Of course, in your case it will be different.
Here is my recorded macro, with comments:
act win("Microsoft Access" "OMain")
'A{fgi} ;;menu File -> Get External Data -> Import
5 win("Import" "bosa_sdm_Mso96") ;;wait for Import dialog
'Sbook1.xlsY ;;type filename in Import dialog and press Enter
5 win("Import Spreadsheet Wizard" "OFormPopup") ;;wait for wizard
'Af ;;press Finish button
5 win("Import Spreadsheet Wizard " "#32770") ;;wait for message box
'Y ;;Enter
Of course, in your case it will be different.
