+ Reply to Thread
Results 1 to 3 of 3

Changing a cell reference as a sheet is copied

  1. #1
    Registered User
    Join Date
    06-10-2010
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Changing a cell reference as a sheet is copied

    Hi All,

    I have a workbook and I've recorded a basic macro that creates a copy of 'worksheet 2' - thats all good but in 'worksheet 2', I am referencing a cell in another sheet, ('worksheet 1') and when I create the new sheet, I want that reference to refer to the next cell, (in the column on worksheet 1).

    Eg.
    SHEET2 C1=SHEET1 C1

    Then after the macro, I want:

    SHEET3 C1=SHEET1 C2
    (Sheet3 being the sheet created by the macro)

    Anyones assistance would be sincerely appreciated.
    TIA
    KylieilyK

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Changing a cell reference as a sheet is copied

    Hi KylieilyK,

    Welcome to the forum!!

    As long as the tab name being referenced doesn't change you can incorporate the following in your existing code:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    06-10-2010
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Changing a cell reference as a sheet is copied

    Hi Robert,

    Thanks for your post - will go try it out now
    Thanks again
    Last edited by kylieilyk; 06-10-2010 at 07:49 PM.

+ 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