+ Reply to Thread
Results 1 to 2 of 2

InputBox prompt user to select no more than 3 columns else error msgbox then try again

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    InputBox prompt user to select no more than 3 columns else error msgbox then try again

    I am currently building a macro to reduce sets of data into line charts based on user input. I am able to prompt the user to select a range that will be plotted but I need to limit that range to not more than 3 columbs. If more than three columbs are selected the code will give the user an error then prompt them again to select a range.

    Thank You,
    ME

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: InputBox prompt user to select no more than 3 columns else error msgbox then try again

    Is the input box setting a range? Can you post the code you have so far so we can make ammendments?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. [SOLVED] Prompt user to select worksheet
    By darkangl640 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-18-2013, 01:12 PM
  2. Edit code to loop error msgbox and inputbox until valid date is entered by user.
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2012, 10:07 PM
  3. Prompt for the user to select folder
    By Pomme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2010, 11:47 AM
  4. [SOLVED] allow user to change workbook while in Msgbox or InputBox
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2005, 11:06 PM
  5. Replies: 0
    Last Post: 03-17-2005, 01:06 AM

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