OK, folks... some more VBA help needed please!!!
I need to create a macro which will prompt the user to select a PDF file on their HDD, then have the PDF filename used as the worksheet name.
The PDFs have the same naming convention: "MachineReport 1234ABC 31102011" where MachineReport is constant, and 1234ABC and 31102011 will vary - they are the machine serial number and date of report creation respectively.
Ideally I'd like the worksheet tab to be named with just 'MachineReport 1234ABC'.
And I'd like this to loop and allow the user to add multiple worksheets, one for each MachineReport PDF file selected by the user, named appropriately.
And for extra ease of use... the macro should, at the start, check for any worksheets already called 'MachineReport xxxxxxx' and delete them.
Sounds simple in theory but can I work it out? No. Hence why I'm asking the collective wisdom on here!!!
Thanks in advance!
I need to create a macro which will prompt the user to select a PDF file on their HDD, then have the PDF filename used as the worksheet name.
The PDFs have the same naming convention: "MachineReport 1234ABC 31102011" where MachineReport is constant, and 1234ABC and 31102011 will vary - they are the machine serial number and date of report creation respectively.
Ideally I'd like the worksheet tab to be named with just 'MachineReport 1234ABC'.
And I'd like this to loop and allow the user to add multiple worksheets, one for each MachineReport PDF file selected by the user, named appropriately.
And for extra ease of use... the macro should, at the start, check for any worksheets already called 'MachineReport xxxxxxx' and delete them.
Sounds simple in theory but can I work it out? No. Hence why I'm asking the collective wisdom on here!!!
Thanks in advance!