+ Reply to Thread
Results 1 to 4 of 4

Repeat Copy/Paste for Unique ID

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Repeat Copy/Paste for Unique ID

    See attached.

    VBA Goal: When a user selects a code, the data in H8:K8 is copied to collumns C:F in the row that matches the chosen code. The attached example shows the results where a user hypothetically selected Code 99.

    Thanks,

    D
    Attached Files Attached Files
    Last edited by dreicer_Jarr; 08-13-2009 at 11:54 AM. Reason: Moderator advised a title change.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    re: Find Number and Paste in Corresponding Row

    Hi
    Try the solution in the attached file
    Ravi
    Attached Files Attached Files

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Find Number and Paste in Corresponding Row

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    You should not use words like macro in thread titles.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Repeat Copy/Paste for Unique ID

    This code worked perfect! Thanks! I knew it must be simple logic. One quick question - let's say I just wanted to print in collumn H for the chosen row.

    Please Login or Register  to view this content.
    Sub macro3()
    a = Cells(1, 1) + 4
    Range("h8:K8").Copy
    Range("C" & a).PasteSpecial
    MsgBox "Updated"
    End Sub
    Please Login or Register  to view this content.

+ 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