+ Reply to Thread
Results 1 to 2 of 2

Advice for Project - What to use: Dictionary, collection, array, reference workbook?

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

    Question Advice for Project - What to use: Dictionary, collection, array, reference workbook?

    Looking at auto-populating a field based on user input values. There is no calculation involved in determining the number, just locating the value based on user's input. For example...

    User inputs: [size], [material], [part name]

    Output: [cost]

    the cost values are tabulated by part name, then the size and material correspond to y&x index or size = row, material = column.

    What I need to do is find the easiest way to implement the data. The cost sheets are to be input manually (only printed files exist w/o digital copies ) and this will be a tedious undertaking as there are dozens of them with RxC ~ 25x15 for each but the sizes vary for each. But before we start on that, it's important to know which direction to head. Any input on how I should go about doing this? I'm looking for the least taxing and most efficient storage solution since the workbook will frequently be updated and shared. Options I'm considering are a reference workbook of tables (this will likely be easiest for data entry, but expensive for VBA) and I'm not sure about the pro/con for dict. or coll. or arrays as I am new to VBA and have not used these yet! The cost values will not change with time and are not dependent. Have not yet considered pivot tables, but I'm open to anything since we're in the infancy stage here.

    Do you guys have any input on how I should go about this?
    Last edited by CSimm; 01-15-2021 at 10:39 AM.

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

    Re: Advice for Project - What to use: Dictionary, collection, array, reference workbook?

    I would use a Userform.

    Luckily for you I need a project to mork on at the moment.

    They are very powerful and can make your data entry very intuitive and robust.

    Once created. You can use as many text boxes as you want to filter your data. You do not have to enter data in all of them.

    So Maybe: Description Starts with: "Meter",
    Description includes: "Volts",
    Description includes: "Megger",
    Minimum Price: 100
    Maximum Price: 1000

    On the Userform a Listbox can then be populated with a list of all "Megger Volt Meters costing between 100 and 1000

    You click on the one you want to populate you list.

    This is just an illustration.

    You first step is to create your database in the format that works best for you.

    Only once your database is ready can you start creating the Userform.
    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.

+ 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. Collection or dictionary fails to get unique items if a single item is repeated
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2019, 07:52 AM
  2. [SOLVED] Jagged dictionary or collection filled via variables
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2017, 12:10 PM
  3. Dictionary vs Collection Speed
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2016, 05:48 AM
  4. Dictionary/Collection/Other for XML/API Table Upload
    By JTWood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 01:02 PM
  5. 2010 VBA - Ordered by Collection or Scripting.Dictionary
    By Herve_Rob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2013, 12:14 PM
  6. Collection vs Dictionary
    By MattShoreson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2007, 10:43 AM
  7. Limitation of collection and dictionary datatype
    By iamrajy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2006, 12:58 PM

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