Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Paulie
 
Posts: n/a
Default Trying again for workbook formula updates

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   Report Post  
Dave Peterson
 
Posts: n/a
Default

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   Report Post  
Paulie
 
Posts: n/a
Default

Thank you Dave!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 10:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"