+ Reply to Thread
Results 1 to 4 of 4

Can VBA house lookup tables

  1. #1
    Registered User
    Join Date
    03-30-2015
    Location
    Charlotte, NC
    MS-Off Ver
    2013
    Posts
    27

    Can VBA house lookup tables

    Hello, all. I'm trying to update a macro we use at work for formatting/finalizing invoices we receive from suppliers. We have a template they all submit their invoices on. We use personal macros to format the worksheet, but still have to manually populate some of the other data. This manual population of information could easily be achieved with a lookup table (entering regions, business units, etc), but without updating the template and having all our suppliers switch to the newer version, we can't do a lot with it. I'm curious if I can incorporate a lookup table into the macro itself. I'll be leaning on the wonderful users of this site to help me with the coding, but I first wanted to understand the capability. Let me know if you need any other information in order to speak on this. Thanks in advance for any clarity you can provide!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Can VBA house lookup tables

    As far as I can see to store such a table solely in VBA it would need to be hard-coded which wouldn't make it easy to update/change it if required.

    Couldn't you store the data for the lookup tables on a sheet, altering the existing code to read use that data and distribute the sheet to the users?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-30-2015
    Location
    Charlotte, NC
    MS-Off Ver
    2013
    Posts
    27

    Re: Can VBA house lookup tables

    Thanks for the reply. Let me make sure I'm following.. You're saying create a workbook w/ the lookup table, distribute this workbook to the users on our end and have the macro reference the lookup workbook to find the proper values? For what it's worth, our BUs shouldn't ever change, so it shouldn't be a problem if it's difficult to update a lookup within the macro. Maybe this isn't the path of least resistance, but my original hope was to incorporate the lookup values into the code, then just distribute the code for our users to update their macros with.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Can VBA house lookup tables

    Kenny

    I suppose you could incorporate the data in the code but as I said it would need to be hard-coded which, to me anway, isn't ideal.

    Also, you would have to rely on the users updating the code themselves which again might not be ideal.

+ 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. UK Companies House API
    By Kyle123 in forum Tips and Tutorials
    Replies: 38
    Last Post: 03-24-2020, 11:08 AM
  2. House Numbers
    By kumarin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2015, 09:16 AM
  3. New in the house!
    By Machme in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 03-14-2015, 08:21 AM
  4. VA in the house!
    By shingik in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-27-2013, 07:31 PM
  5. The Dog House!
    By Mordred in forum The Water Cooler
    Replies: 10
    Last Post: 06-30-2011, 06:19 PM
  6. Using info to build house
    By Zetmandu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2011, 07:50 PM
  7. New MVP in da house?
    By Domski in forum The Water Cooler
    Replies: 21
    Last Post: 08-20-2010, 01:21 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