+ Reply to Thread
Results 1 to 6 of 6

Streamline InputBox

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Streamline InputBox

    Please Login or Register  to view this content.
    Ideally, I'd like to have this code streamlined. There will be a min of 1 and max of 5. Rather, not have the user input data unnecessarily. Maybe have an Inputbox where the user says how many values need to be entered...

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Streamline InputBox

    somethign like this maybe?

    Please Login or Register  to view this content.
    you could really streamline the code by using an array instead of 5 variables, but the user experiance would still be the same.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: Streamline InputBox

    Not so worried about the user experience. Just trying to cut down on the code a bit.

    I was thinking that it could be done where the "counter" dictated the cptX variable (where X is 1 to 5).

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Streamline InputBox

    you can use an array like this

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: Streamline InputBox

    Exactly what I was looking for. Used the same array for the Vlookup() based on cpt(i).
    THANK YOU!!

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Streamline InputBox

    no problem, glad to help.

    could you please mark as solved?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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