Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Paul,
here is the code I have span for you so far Sub SheetInsert() x = InputBox("How many sheets would you like to add?", "Insert Sheets") y = InputBox("What would you like the number of the first sheet to be?", "Insert Sheets") For i = 1 To x Sheets.Add ActiveSheet.Name = i + y - 1 [A1] = i + y - 1 ActiveSheet.Move After:=Sheets(Worksheets(Worksheets.Count).Name) Next i End Sub the problem i have is knwoing how much of the master sheet you want to coy. I can't imagine it is everything else this would mean the code that writes the sheet name to A1 of each cell is rendered useless. (It will be overwritten) let me know what range of the Master sheet you want copying and where to in each sheet somethinglikeant http://www.excel-ant.co.uk Paul Black wrote: Hi Everyone, I have a Sheet Named Master. I would like 2 Input Boxes :- Input Box 1 will ask me for the Number of Sheets I would like to be Inserted. Input Box 2 will ask me what the Number of the First New Sheets Tab is to be. If I was to ask for 50 Sheets to be Inserted and the Number of the First Sheet was to be 901 for Example, the 50 Sheets Tabs would go from 901 to 950. I would also like the Number of the Sheets Tab to be Placed in Cell A1 of EVERY Sheet as a Value. Finally I would like the Sheet Named Master to be Copied to EVERY Sheet and the Cursor to End Up in Cell B22 of EVERY Sheet. It would also be Very Useful if the Sheets to be Inserted are Inserted Directly After the Number of the Current Highest Sheet Number Used Please. I hope I have Explained this Clear Enough. Thanks in Advance. All the Best. Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy cell info to other sheets, other sheets dont contain all row. | Excel Worksheet Functions | |||
How do I copy a header to insert on multilpe sheets in a workbook | Excel Discussion (Misc queries) | |||
Macro to insert copy and insert formulas only to next blank row | Excel Programming | |||
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? | Excel Worksheet Functions | |||
Macro to insert new sheets and copy information. | Excel Programming |