+ Reply to Thread
Results 1 to 10 of 10

Copy Data from relavent page

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Copy Data from relavent page

    Hi,

    I have a mainpage with a button which creates a copy of the template every time I click it.

    Eg When Button 1 is clocked once - It creates two new worksheets called TIPT_Site_1 and TIPT_CALC_1
    if clicked again it creates two more new worksheets called TIPT_Site_2 and TIPT_CALC_3, so everytime it clicks, creates new sheets and name them as 1, 2, 3, 4, 5... so on.


    What i want to do is use the values entered in TIPT_Site_1 in TIPT_CALC_1, for TIPT_CALC_2 use values from TIPT_Site_2... and so on.

    So prettymuch I want the two newly created worksheets to be linked so it uses the right values.

    If I wanted to use Value of TIPT_SIte_1 A5 in TIPT_CALC_1 in cell B6 i know i can use =(TIPT_Site_1!A5). but then for the other once i need to change it manualy again to =(TIPT_Site_2!A5).... And this is not practicle. I want the equaltion of these cells to change automaticaly.

    Is there a piece of VBA code I can use to do this.
    Thankyou

    Ay help is much appriciated

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy Data from relavent page

    Hi, it would be much better if you provide the code that you are currently using. So people can amend from there, rather than coming up with a new piece of code.

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Copy Data from relavent page

    Hi,

    This is the Workbook I created.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy Data from relavent page

    Which are the cells that needs the formula updated? Doesn't seem to have anything in cells A5 or B6 in any sheets like you mentioned.

  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    North Dakota
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Copy Data from relavent page

    You should be able to create formulas using the method below. I usually try to define variables for my sheets, but using the variables you already have I've inserted your example in the proper place in the code below. "...in cell B6 i know i can use =(TIPT_Site_1!A5)."

    Please Login or Register  to view this content.

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy Data from relavent page

    Just found the cells in the CALC sheet. Try adding this just below the code that copies the CALC sheet.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Copy Data from relavent page

    Thankyou Verymuch. It works.

  8. #8
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Copy Data from relavent page

    HI, One more question.

    How can I use value from ("TIPT_Site_BW_CALC " & x ) in "=(TIPT_Site_" & x )
    What I want to do is Copy the total band with calculated in to Tipt site page.

    Thankyou

  9. #9
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy Data from relavent page

    If I understood you correctly.

    Try adding this below the code in post #6
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Copy Data from relavent page

    Thanks... Everything works as I want. Much appritiated your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 09-11-2013, 08:56 PM
  2. Working on userform without opening relavent excel file.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2010, 02:15 AM
  3. retrieve data from different page and copy
    By abelkrista in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2010, 12:53 AM
  4. Copy data from excel into a web page
    By Inktvis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2008, 12:13 PM
  5. [SOLVED] How do I copy a graph of a data page to a new data page.
    By Jackrc in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-09-2006, 07:45 AM

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