+ Reply to Thread
Results 1 to 4 of 4

Macro to update table based on multiple conditions

  1. #1
    Registered User
    Join Date
    07-06-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Macro to update table based on multiple conditions

    The following code looks at a data table ("Emp Data Behav Comp"), matches column ("V3:V7") and row ("U3:U7") and then pastes values from Activesheet range ("W3:W7"). The problem that I can't figure out is that it finds the columns but only pastes the first value from ("W3") into each cell. I need it to post each of the corresponding values("W3:W7") into the appropriate cells.

    See attached example.

    Test1.xlsx


    Any help would be appreciated.



    Please Login or Register  to view this content.
    Last edited by Eric111; 12-06-2014 at 10:51 PM. Reason: Updating post

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,598

    Re: Need help with last part of data value update macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    07-06-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Need help with last part of data value update macro

    Thanks for reminding me about the code tags, I was in a rush submitting this post.

  4. #4
    Registered User
    Join Date
    07-06-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Macro to update table based on multiple conditions

    I figured out the problem, the following code correctly posts each value to the corresponding column in data table.



    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)

Similar Threads

  1. [SOLVED] Help To Fix Part Of Macro That Does Not Filter Data Properly
    By chicalaeti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2014, 12:27 PM
  2. [SOLVED] IF data on opened worksheet has blank data then cancel macro and move onto next part
    By jonathan.haynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2013, 07:11 AM
  3. [SOLVED] Excel Command Button Macro to ask for Part # and update another sheet with info
    By dka5034 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-14-2013, 08:36 AM
  4. Find Part number through Macro and output to associated part to certain cell
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 04:32 PM
  5. macro that would erase part of data in a cell?
    By tradewindrider in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2007, 02:09 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