GoodyGoody
Registered User.
- Local time
- Today, 23:31
- Joined
- Aug 31, 2019
- Messages
- 120
Hi, I want to import an Excel SS containing 2 columns: RacerunnerNumber and Racetime. I'm allowing the user to select Excel files from 2003 onwards. However, when using the transferspreadsheet method it requires you to specify a SS type. Is there a way of me knowing which SS type it is when I import the object?
Thanks in advance as ever
Code:
Dim xlApp As Object
Dim xlWb As Object
Dim xlWs As Object
Set xlApp = CreateObject("Excel.Application") 'the excel application
strFileName = .SelectedItems(1) 'picking the selected file full path
Set xlWb = xlApp.Workbooks.Open(strFileName, True, False)
Set xlWs = xlApp.Worksheets(1)
Thanks in advance as ever