Hi,
I want to create a macro that will convert a text file into excel file. After the conversion, there will be only 1 sheet in the excel file. Next, I need to take that 1 sheet from the excel file and copy and paste into another excel workbook.
I am able to create the macro to convert a text file into excel file. However, I am not able to create a macro to copy and paste that excel sheet (which has the converted text file) into another excel workbook.
The problem is the name of the sheet. When I convert the text file into excel file, the sheet gets an automatic name based on the title of the text file. However, the name of the sheet will keep changing every month when i use this macro because each month, the text file has a different name....so how do I create a VBA code that would reference that converted text to excel file worksheet without using its name?
Thank you,
I want to create a macro that will convert a text file into excel file. After the conversion, there will be only 1 sheet in the excel file. Next, I need to take that 1 sheet from the excel file and copy and paste into another excel workbook.
I am able to create the macro to convert a text file into excel file. However, I am not able to create a macro to copy and paste that excel sheet (which has the converted text file) into another excel workbook.
The problem is the name of the sheet. When I convert the text file into excel file, the sheet gets an automatic name based on the title of the text file. However, the name of the sheet will keep changing every month when i use this macro because each month, the text file has a different name....so how do I create a VBA code that would reference that converted text to excel file worksheet without using its name?
Thank you,