Hello, this is a VBA query relating to Microsoft Excel 2007.
I am trying to run a macro that copies the current sheet and deletes some of the content to provide a new blank sheet.
Ideally I want this to use a value that is shown in a cell within the new sheet. I had tried to acheive this by copying the cells contents and then pasting as a value within a macro, however this worked on the first sheet but the second time I ran the macro, the second new sheet was named the same as the first new sheet.
I had tried stepping into the macro's code, but cannot work it out. Can anyone help me?? Any help would be much appreciated. Many thanks.
I am trying to run a macro that copies the current sheet and deletes some of the content to provide a new blank sheet.
Ideally I want this to use a value that is shown in a cell within the new sheet. I had tried to acheive this by copying the cells contents and then pasting as a value within a macro, however this worked on the first sheet but the second time I ran the macro, the second new sheet was named the same as the first new sheet.
I had tried stepping into the macro's code, but cannot work it out. Can anyone help me?? Any help would be much appreciated. Many thanks.
Comment