+ Reply to Thread
Results 1 to 3 of 3

Trying again for workbook formula updates

  1. #1
    Paulie
    Guest

    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. #2
    Dave Peterson
    Guest

    Re: Trying again for workbook formula updates

    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. #3
    Paulie
    Guest

    Re: Trying again for workbook formula updates

    Thank you Dave!


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1