Macro to create a new workbook, copy sheet, but then...

George J

Well-known Member
Joined
Feb 15, 2002
Messages
959
After the sheet has been copied to the new workbook, a value will be changed in the original sheet, (old workbook), which will alter all the data and should be copied to the workbook just created. This will create a number of worksheets in the new book, but I also want the sheet names to default to whatever is in cell A7.

This one is making me dizzy. I think I have all the other parts figured out but 'til I get started I won't really know.

Any help or advice appreciated.

:LOL:

_________________
George J
This message was edited by George J on 2002-02-18 09:53
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Well, I have some questions, but maybe this line of code will answer your question.

ActiveSheet.Name = Range("A7").Value

That will rename the active worksheet to the value in A7. Let me know if you need more assistance than that.
 
Upvote 0
I knew it. I've lost the plot.
I'll try to be more concise now that the voices have stopped for a while.

Examples I have seen of opening new workbooks through a macro enable the user to have single sheet workbooks.

I would like to know how to ensure that after I have opened a workbook, the next sheet I try to copy across will go to the corect place as the workbook will not yet be named and will not be the active workbook as the code will hopefully be changing cell A7 in the original workbook (this sheet will then be copied to the new workbook etc).

I am not going in to too much detail as it will be a lot of work to answer rather than me picking brains (this does make me sound mad) :biggrin:

I will not get a chance to see the board again until Thursday, but if I still can't get it
:cool: I'll be back! :cool:

_________________
George J
This message was edited by George J on 2002-02-18 15:14
This message was edited by George J on 2002-02-18 15:16
This message was edited by George J on 2002-02-18 15:17
This message was edited by George J on 2002-02-20 13:56
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top