Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Well, that's doable, just add these three lines of code at the bottom. It
will delete next to last sheet in the book, which should be the last sheet you imported, right? ========== Application.DisplayAlerts = False TheBook.Sheets(TheBook.Sheets.Count - 1).Delete Application.DisplayAlerts = True ========== Does this help? Your feedback is appreciated, click YES if this post helped you. "ericlbt" wrote: Hi, Thank you very much. The macro is working very well. It would be perfect if the imported file/sheet could replace the old one and not be added to the existing ones. 04.04.09 - one sheet 04.05.09 - one sheet after the 04.04.09 one What I would love: 04.05.09 - one sheet (no more 04.04.09) Thank you. Have a nice day. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro for importing text files but the file name changes | Excel Worksheet Functions | |||
merging excel files | Excel Discussion (Misc queries) | |||
Merging 800 Excel files | Excel Discussion (Misc queries) | |||
Merging Different excel files into one | Excel Discussion (Misc queries) | |||
merging my excel files | Excel Discussion (Misc queries) |