+ Reply to Thread
Results 1 to 3 of 3

Excel: Macro to copy selected cells from Worksheet to a specified Worksheet(s)

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Excel: Macro to copy selected cells from Worksheet to a specified Worksheet(s)

    Hello everybody, my first message here. My problem is as mentioned in a title.

    I want to copy selected cells from one Worksheet to a specified Worksheet(s) or to next Worksheet.

    Rules:
    1. After selecting the cells I press a button or a shortcut to execute the macro.
    2. Inputbox pops up asking me the name(s) of the worksheet(s) where I want to copy selected cells. (or just copy to activesheet.next....)
    3. Cells are copied to the assigned worksheet(s) to the exact same location as where the cells were in a worksheet from where the cells were copied.

    Seems simple, but I'm a rookie with macros, I tried to solve this by recording macros but that led me nowhere.

    Thank you for your help.

    Regards, Hermanni Hänninen, Finland

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Excel: Macro to copy selected cells from Worksheet to a specified Worksheet(s)

    Try this..

    Please Login or Register  to view this content.
    hope you can manage to add shortcut for this..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    09-03-2013
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Excel: Macro to copy selected cells from Worksheet to a specified Worksheet(s)

    Thank you, that did the trick.

    Now I would only need a small code to be able to copy to several worksheets. I managed to change you code so that return from inputbox is string, so I can use workbook name.

    So If I want to copy to several worksheets from inputbox output have to do some Case-Loop think?

    Like if inputbox output is: sheet1, sheet2, sheet5
    and I want to copy to all of those. First I think have to cut the string to smaller pieces, like separate every sheet name. And then do a Case loop?

    Am I on a right track?

    And is it too much to ask someone to do small coding for me?

    Regards, Hermanni

+ 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. [SOLVED] Macro to copy cells from one worksheet to another copies worksheet data as image instead??
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 11:26 AM
  2. Copy data drom selected cells to new one worksheet (row)
    By michael12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2012, 07:24 AM
  3. Copy selected cells to end of row in another worksheet
    By jones5 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-10-2012, 02:03 PM
  4. Copy selected cells/rows to another worksheet _
    By mcm1009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2011, 11:34 AM
  5. Copy selected cells/rows to another worksheet
    By Spellbound in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-07-2011, 01:02 PM

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