R
rirus via AccessMonster.com
Using Access VBA I am importing an Excel Spreadsheet using, DoCmd.
TransferSpreadsheet acImportDelim, 8, strAccess, strExcel, True,
strSheetRange.
There are several worksheets in the workbook and I only want to import one
specific sheet. I found a help file that stated I can specifiy the Worksheet
by using a ! to seperate the Worksheet and the Range.
Example: strSheetRange = 'DataSheet3!A1
220'
The problem: In the strSheetRange string the ! comes back as a $.
The question: How can get the ! to be recognized as a !? Is there a Chr$(??)
I can use to identify this character?
Thanks,
Rirus
TransferSpreadsheet acImportDelim, 8, strAccess, strExcel, True,
strSheetRange.
There are several worksheets in the workbook and I only want to import one
specific sheet. I found a help file that stated I can specifiy the Worksheet
by using a ! to seperate the Worksheet and the Range.
Example: strSheetRange = 'DataSheet3!A1
The problem: In the strSheetRange string the ! comes back as a $.
The question: How can get the ! to be recognized as a !? Is there a Chr$(??)
I can use to identify this character?
Thanks,
Rirus