Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Okay, a bit less long winded this time. Can anyone provide me with code
for opening up an old workbook, making a copy of a worksheet in that workbook and saving it within that workbook as "old worksheet"? That much will get me started. After that I will work on code for updating formulas in the original worksheet. Thank you. |
#2
![]() |
|||
|
|||
![]()
Option Explicit
Sub auto_open() Dim newWks As Worksheet With ThisWorkbook .Worksheets("sheet1").Copy after:=.Worksheets(.Worksheets.Count) End With Set newWks = ActiveSheet newWks.Name = "Old Worksheet" End Sub It'll work until you have an existing worksheet named "old worksheet". Then it'll crash on that .name command. Paulie wrote: Okay, a bit less long winded this time. Can anyone provide me with code for opening up an old workbook, making a copy of a worksheet in that workbook and saving it within that workbook as "old worksheet"? That much will get me started. After that I will work on code for updating formulas in the original worksheet. Thank you. -- Dave Peterson |
#3
![]() |
|||
|
|||
![]()
Thank you Dave!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with VBA returning the contents of a long formula. | Excel Discussion (Misc queries) | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) | |||
revert formula insertion to old method | Setting up and Configuration of Excel | |||
Relative Indirect Formula Referencing? | Excel Worksheet Functions | |||
Help with macro formula and variable | Excel Worksheet Functions |