+ Reply to Thread
Results 1 to 8 of 8

How to copy the cells from one active sheet to another active sheet

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    paris
    MS-Off Ver
    Excel 2010
    Posts
    25

    How to copy the cells from one active sheet to another active sheet

    Hi n thanks

    i have created templates with given name now on clicking the button it creates different templates what is needed but i want a button on one of the created template which should copY THE CELLS from other template which is also created at the same tym both are active . Should should i copy from that specific active sheet to this active sheet.


    EX:
    what i have :
    BUTTON CLICK - copies and displayes the sheet with the manually given at that time sheetname (upto 4 with different data) so every click it creates new 4 sheets with diff sheetname

    now i want to create a button on one of that sheet ex: copy cells from sheet 1 which is active to another sheet2 active
    Last edited by pranav.y; 06-05-2013 at 09:31 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to copy the cells from one active sheet to another active sheet

    2 active sheets in the same time ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    paris
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: How to copy the cells from one active sheet to another active sheet

    no i want to copy from one sheet to another but if i say ... copy to active sheet from (since from sheet is created at the same time this sheet is created by click with another name)

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    How are you creating the new sheet and which sheet do you want to copy from?

    PS Don't use ActiveSheet, refer to sheets by their name or via an object variable.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    paris
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: How to copy the cells from one active sheet to another active sheet

    Thanks for the reply .....if i say i create a worksheets sheet 1 ,sheet 2 , sheet 3 now for every click it creates the copy of that sheet like sheet 1(1), sheet 2(1), sheet 3(1) ....so if u click again it will create sheet 1(2), sheet 2(2), sheet 3(2) so i want a button in sheet 1(1) which copies a cells from sheet sheet 2(1) and if i click on sheet 1(2) it should copy the cells from sheet 2(2).

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to copy the cells from one active sheet to another active sheet

    So how are you creating the worksheets?

    If you are using code you can create references to the worksheet the button is on and the worksheet you are creating.

    You can then use those references to copy data from one worksheet to the other.

  7. #7
    Registered User
    Join Date
    06-05-2013
    Location
    paris
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: How to copy the cells from one active sheet to another active sheet

    ok i got this one now can you please tell me the code like said for every click it generates the copy of the sheet nw one click generates sheet 1(1), sheet 2(1), sheet 3(1) and again a click generates sheet 1(2), sheet 2(2), sheet 3(2) i want the color of the tab for the set of sheets should be same like if i click button it give sheet 1(1), sheet 2(1), sheet 3(1) with tab color - red , another click sheet 1(2), sheet 2(2), sheet 3(2) - tab color blue n so on .....
    thanks

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to copy the cells from one active sheet to another active sheet

    Could you please tell us what code you are using to create the new worksheets?

+ 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