+ Reply to Thread
Results 1 to 7 of 7

Macro to ask user which row to copy and paste cells to specific cells in another sheet

  1. #1
    Registered User
    Join Date
    04-09-2017
    Location
    UAE
    MS-Off Ver
    MS365 Version 2301
    Posts
    43

    Macro to ask user which row to copy and paste cells to specific cells in another sheet

    I am new to Macro/VBA. I need a macro that when it runs, it will ask the user to enter which row the user would like to copy and it will paste the values of each cells to specific cells in a template. hope someone can help. thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,248

    Re: Macro to ask user which row to copy and paste cells to specific cells in another sheet

    Hi majana54

    Try this...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro to ask user which row to copy and paste cells to specific cells in another sheet

    In your scenario I would use two macros.

    Right Click on the sheet name at the bottom of excel and select view code to see the sheet specific macro

    It runs the second macro when you click on an item no.

    Please Login or Register  to view this content.

    The second macro does the work.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,248

    Re: Macro to ask user which row to copy and paste cells to specific cells in another sheet

    @ mehmetcik
    Nice one...

  5. #5
    Registered User
    Join Date
    04-09-2017
    Location
    UAE
    MS-Off Ver
    MS365 Version 2301
    Posts
    43

    Re: Macro to ask user which row to copy and paste cells to specific cells in another sheet

    Quote Originally Posted by mehmetcik View Post
    In your scenario I would use two macros.

    Right Click on the sheet name at the bottom of excel and select view code to see the sheet specific macro

    It runs the second macro when you click on an item no.

    Please Login or Register  to view this content.

    The second macro does the work.

    Please Login or Register  to view this content.
    thank you mehmetcik and sintek for your responses. i owe you big time!

    just one last thing, (i can do it manually but was wondering..) my source file's cells are colored and i wanted to copy just the values and not the format itself. is there a way for this to happen?

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,248

    Re: Macro to ask user which row to copy and paste cells to specific cells in another sheet

    Try this
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-09-2017
    Location
    UAE
    MS-Off Ver
    MS365 Version 2301
    Posts
    43

    Re: Macro to ask user which row to copy and paste cells to specific cells in another sheet

    Quote Originally Posted by sintek View Post
    Try this
    Please Login or Register  to view this content.
    Thank you!

+ 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. Vba to copy and paste only specific cells to a new sheet
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2016, 02:01 AM
  2. [SOLVED] Copy & Paste specific cells to a summary sheet
    By JackSmith123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2016, 02:08 AM
  3. [SOLVED] Copy only specific cells contents to another sheet and paste at the bottom of a column
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2015, 06:43 AM
  4. Macro to copy paste specific cells into empty cells below them
    By qlo_0lp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2014, 04:49 PM
  5. Copy specific data from differint cells and paste in one sheet
    By cyberzard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2013, 02:25 AM
  6. Copy active row and paste to specific cells on different sheet
    By XxCMoneyxX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 03:03 PM
  7. [SOLVED] Macro Copy Paste specific cells
    By guydixon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2012, 01:16 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