Hi there,
I'm looking for some code that will import an Excel worksheet that has been exported from a DB. Essentially, the macro should do the following upon execution:
1. Display file-open dialogue box to allow selection of a single file
2. Copy worksheet from within selected workbook ' there will only ever be one worksheet in workbook and will always be called "Sheet 1", as per how the exporting DB operates
3. Close imported file '' it would be beneficial if user doesn't actually see the open/closing to give a smoother UEX
4. Name "Sheet 1" as x
I then have subsequent macros to derive values, format, prepare for publication etc.
Any help would be most appreciated!
Thanks,
Rob.
Bookmarks