R
Risky Dave
Hi,
I have a workbook that needs to do the following:
1) create a new (temporary) sheet (called "Extract")
2) copy the contents of five separate sheets to adjacent areas of "Extract"
3) copy all of Extract to a new workbook
4) delete Extract from the original workbook
The problem I have is that I don't know the name of the the source workbook
where Extract is created, so I can't work out how to reference it to delete
Extract when I've finished with it. I assume it is possible to create a
string to store the workbook name and reference that string, but doing this
is beyond my meagre (but slowly improving!) VB skills.
Can anyoone provide me with some guidance, please?
Alternatively, if there is a more efficient way of copying the five source
sheets to a single target sheet in a new book feel freee to say.
TIA
Dave
I have a workbook that needs to do the following:
1) create a new (temporary) sheet (called "Extract")
2) copy the contents of five separate sheets to adjacent areas of "Extract"
3) copy all of Extract to a new workbook
4) delete Extract from the original workbook
The problem I have is that I don't know the name of the the source workbook
where Extract is created, so I can't work out how to reference it to delete
Extract when I've finished with it. I assume it is possible to create a
string to store the workbook name and reference that string, but doing this
is beyond my meagre (but slowly improving!) VB skills.
Can anyoone provide me with some guidance, please?
Alternatively, if there is a more efficient way of copying the five source
sheets to a single target sheet in a new book feel freee to say.
TIA
Dave