Ok, Here is the code modified to work for your. It may need some tweeking to
get exactly what you want, but based on the original code, I think this will
work for you. If you have any questions, post back.
Dim varGetFileName As Variant 'Pass to Common Dialog to open workbook
Dim strDefaultDir As String 'Pass Directory to search for common dialog
Dim strfilter As String 'Limit common dialog search to excel workbooks
Dim lngFlags As Long 'Hide readonly check box on common dialog
Dim strFileName As String 'Initial File Name to Display
'Set up Default Directory
strDefaultDir = "c:\filegoeshere\"
'Setup Default File Name
strFileName = txtFname
'Flags Hides the Read Only Check and Only allow existing files
lngFlags = ahtOFN_HIDEREADONLY Or ahtOFN_FILEMUSTEXIST
'Set filter to show only Excel spreadsheets
strfilter = ahtAddFilterItem(strfilter, "Excel Files (*.xls)")
'Call the Open File Dialog
varGetFileName = ahtCommonFileOpenSave( _
OpenFile:=True, _
InitialDir:=strDefaultDir, _
Filter:=strfilter, _
FileName:=strFileName, _
Flags:=lngFlags, _
DialogTitle:="Import Adjusted Actuals") 'Change the text here
Me.Repaint 'May not need this, I did it because stuff was left on
screen
If varGetFileName = "" Then 'User Clicked CANCEL
Exit Sub
Else
'Import the Spreadsheet
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
"tblCell", varGetFileName, True
Call CleanupDB
End If