+ Reply to Thread
Results 1 to 3 of 3

Help for VBA improvement

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help for VBA improvement

    I am trying to find an automated solution for the following daily task. I have a master workbook with 13 sheets.

    Sheet names are Jan-Dec (all 12 months) and Data.

    Every sheet has 2 sets of 3 columns: Item Code (A1), Year (B1), Price (C1) and Item Code (E1), Year (F1), Price (G1).

    Every day I have over 1000 new entries in "Data" sheet and then have to find matching item code (in Column A) in other 12 sheets, columns A-C, cut and move new matching data to E-G and highlight the new entries.

    I have tried the following vba codes:

    Please Login or Register  to view this content.
    and also the following one, which works perfectly:

    Please Login or Register  to view this content.
    I'm trying to improving the workbook and add some modification to above VBA as following:

    1- In my monthly sheets now I have 2 sets of columns as you can see in picture.

    As you can see in first set of columns I have 8 titles A-H (REPORT # | DATE | TRANSACTION ID | ITEM CODE | YEAR | PRICE | NOTES | SOLD BY), and in second set I have 4 titles J-M (REPORT # | ITEM CODE | YEAR | PRICE).
    2- In DATA sheet I have 1 set of columns with 4 titles A-D (REPORT # | ITEM CODE | YEAR | PRICE). See the picture.

    Improvements I'm looking to make:

    1- If finds matches in month tabs (cells A:H) for cells B:C in "DATA" sheet, move (cut) cells A:D from "DATA" to matching month's cells J:M and highlight it yellow.

    2- If finds 2 or more matches, first try to move it to the first match, but in case if the first one already has a matching data, move it to the second one.

    3- If finds only one match and already there is a data in cells J:M, insert a row below, add data and highlight it blue.

    4- If no match finds, highlight cells red in "DATA" tab.

    I attached a sample page of my workbook.

    Hope someone can help with this improvement.

    Cross posted: here, here and here
    Attached Files Attached Files
    Last edited by bacci; 09-23-2017 at 11:12 AM.

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

    Re: Help for VBA improvement

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

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

    Re: Help for VBA improvement

    Please add links to ALL your cross-posts - Thanks

+ 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. Efficiency in VBA and Improvement
    By skellz022782 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2016, 04:15 PM
  2. [SOLVED] Need improvement in code..
    By JayeshG in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-18-2015, 10:40 AM
  3. Spreadsheet improvement
    By Amber12 in forum Excel General
    Replies: 3
    Last Post: 03-01-2013, 05:37 PM
  4. Pivot table improvement and formula improvement
    By constructionsheets in forum Excel General
    Replies: 0
    Last Post: 10-22-2011, 07:06 PM
  5. S/Sheet improvement
    By bobbybee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2009, 11:46 AM
  6. Improvement for office
    By Robert Adams, from Argentina in forum Excel General
    Replies: 2
    Last Post: 05-30-2006, 05:35 PM
  7. HLOOKUP improvement?
    By Brad in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

Tags for this Thread

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