+ Reply to Thread
Results 1 to 4 of 4

Help with parameter

  1. #1
    Registered User
    Join Date
    06-13-2015
    Location
    Cebu, Philippines
    MS-Off Ver
    Office 2013
    Posts
    2

    Help with parameter

    Good day! Im just new with macros so please bear with me. Scenario is I have a database, then I need to pull up the table with columns Invoice, Address, Total etc. based on two parameters CustomerNo and Year. I was able to make it work and no problem pulling up all records. Let's say Cell(2,1) i will type "101" as CustomerNo and Cell(3,1) "2015" as Year, is there a way I can pull up the record if the user will input "2010;2013;2015" for the Year and will generate all records pertaining to those values. I hope someone could help me. Thanks!

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Help with parameter

    Let's say the variable is called sInput.
    The use
    Please Login or Register  to view this content.
    This will create an array of the 3 values (2010, 2013, 2015).
    The loop through the array to take action on each value :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    06-13-2015
    Location
    Cebu, Philippines
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Help with parameter

    Hello! thank you for the quick reply. code runs like a charm! thanks again!

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Help with parameter

    You're welcome! Thanks for the feedback and for the rep.

+ 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. Replies: 2
    Last Post: 10-06-2014, 08:15 AM
  2. Replies: 0
    Last Post: 10-06-2014, 07:35 AM
  3. Parameter Query that takes parameter value from Excel Cell
    By Aquamore in forum Access Tables & Databases
    Replies: 1
    Last Post: 01-23-2014, 03:43 PM
  4. Replies: 0
    Last Post: 11-12-2013, 03:57 AM
  5. Parameter Query - Bad Parameter Type
    By Kyle123 in forum Excel General
    Replies: 0
    Last Post: 04-23-2013, 01:06 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