+ Reply to Thread
Results 1 to 4 of 4

New to VBA/Macros and need some thoughts & input on a project...

  1. #1
    Registered User
    Join Date
    01-13-2021
    Location
    Gaffney, SC
    MS-Off Ver
    Office 365, 2016
    Posts
    8

    Question New to VBA/Macros and need some thoughts & input on a project...

    Curious as to the quickest way to accomplish this task from some automation veterans. I have some experience programming but new to VBA and automation.

    Project Details:

    Excel Workbook Size: 100-10,000 rows, 10-15 columns
    Data is dumped and formatted as follows:

    (A1, B1, C1) --> (Description, Dimension, Cost)

    The only identifiers are the description and dimension, no SN or anything like that. The issue I have is some of the items include the cost, but some do not.
    For example. Item 1 may be a (Box, 2x2, $15) and Item 2 may also be a (Box, 2x2, " ") - with no cost showing. Item 3 may be a (circle, R=5, $20), ... etc.

    What I would like for this Macro to accomplish is -

    1. IF the cost is already included, all matching items with the same dimension AND description will have its cost value automatically populated (so after running the macro, Item 2 would say (Box, 2x2, $15))
    2. IF the cost is not included AND there are no matching items in the list with a cost associated, the user would have to input this item's cost. After the user inputs a cost, they could run the macro again and if there are any identical items below --> see point 1.

    Notes: the user will likely go from top-to-bottom through the data until all costs are filled out. You can see the benefit of automating this. Currently, the process used is: filter individual items>input cost>drag&drop to populate. This is very taxing when there are dozens of unique items, some with cost and some without. This process will be different for every project. So some projects may be shapes in the description and others may be animals and so on. That being said, the code should be as generic as possible. I think a macro is definitely the tool for the job. So far I have been experimenting with Index matching, but if you guys have any suggestions or have a project that does something similar that you would be okay with sharing feel free to chime in. Thanks!

    Cheers,
    Luke

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: New to VBA/Macros and need some thoughts & input on a project...

    It's not pretty and I'm sure theres 100 better ways to code it but the following will do the job

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    01-13-2021
    Location
    Gaffney, SC
    MS-Off Ver
    Office 365, 2016
    Posts
    8

    Re: New to VBA/Macros and need some thoughts & input on a project...

    Thank you! This is an excellent start for my project. You saved me several hours! I appreciate the help

  4. #4
    Registered User
    Join Date
    01-13-2021
    Location
    Gaffney, SC
    MS-Off Ver
    Office 365, 2016
    Posts
    8

    Re: New to VBA/Macros and need some thoughts & input on a project...

    I used your concepts to get started... here is what I arrived at. I am looking into implementing your input box idea as well since my current code is very dependent on active cell address.

    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. When I close another project without macros my macro project still runs its code
    By RossioPS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2017, 04:07 AM
  2. Form Input Project
    By White1Fang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2017, 04:19 AM
  3. the macros in this project are disabled
    By dyosa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2016, 03:51 AM
  4. Project - Input Page
    By her.rockstar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2013, 07:50 AM
  5. Macros not running frm protected project.
    By Aussie_Striker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2007, 07:39 AM
  6. [SOLVED] Replace Input box with Project Array
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2006, 02:55 PM
  7. Macros project
    By RobMack in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2006, 09:45 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