I have a macro that imports data from a file and then manipulates the data. The TransferSpreadsheet options are set to:
Transfer Type: Import
Spreadsheet Type: Microsoft 8-10
Table Name: t_PPCGooglePhrases_WeeklyData_Imported
File Name: ="\\fileserv\shared\Public\Internet\Internet_Marketing\SEM_Reports\Weekly_Reporting\" & InputBox("Please enter data year.") & "\" & InputBox("Please enter name of file containing the Google weekly data.")
Has Field Names: Yes
Range: GooglePhrases!A5:J50000
So, what I want to be able to do is do another TransferSpreadsheet on the next line of the macro, but without having to ask for the filename again. It will be the same file name, but different range. How would I do this?
Transfer Type: Import
Spreadsheet Type: Microsoft 8-10
Table Name: t_PPCGooglePhrases_WeeklyData_Imported
File Name: ="\\fileserv\shared\Public\Internet\Internet_Marketing\SEM_Reports\Weekly_Reporting\" & InputBox("Please enter data year.") & "\" & InputBox("Please enter name of file containing the Google weekly data.")
Has Field Names: Yes
Range: GooglePhrases!A5:J50000
So, what I want to be able to do is do another TransferSpreadsheet on the next line of the macro, but without having to ask for the filename again. It will be the same file name, but different range. How would I do this?