+ Reply to Thread
Results 1 to 6 of 6

InputBox will not stop coming up

  1. #1
    Forum Contributor
    Join Date
    08-31-2007
    MS-Off Ver
    2010
    Posts
    130

    InputBox will not stop coming up

    I have entered the following code into my VBA to force the operator to fill in the necessary info
    If the certain conditions are present.

    Please Login or Register  to view this content.
    The problem is it will not stop asking as you continue to fill out the form.

    Any ideas would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: InputBox will not stop coming up

    Yesterday, this was part of a Workbook_open event. Is it now part of a Worksheet_Change event?

    If so, that endless loop can be fixed by adding these two lines as the first and last lines, respectively, in your _Change sub:

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

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

    Re: InputBox will not stop coming up

    Where is the code located and how is it being executed?
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    08-31-2007
    MS-Off Ver
    2010
    Posts
    130

    Re: InputBox will not stop coming up

    Quote Originally Posted by walruseggman View Post
    Yesterday, this was part of a Workbook_open event. Is it now part of a Worksheet_Change event?

    If so, that endless loop can be fixed by adding these two lines as the first and last lines, respectively, in your _Change sub:

    Please Login or Register  to view this content.
    It is indeed now in Worksheet_Change.
    And the Application.EnableEvents = False and Application.EnableEvents = True
    Are already part of my _Change sub:

  5. #5
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: InputBox will not stop coming up

    Then please post the workbook so we can troubleshoot what's going on.

  6. #6
    Forum Contributor
    Join Date
    08-31-2007
    MS-Off Ver
    2010
    Posts
    130

    Re: InputBox will not stop coming up

    Quote Originally Posted by walruseggman View Post
    Then please post the workbook so we can troubleshoot what's going on.
    As my workbook contains so much company info I was not able to post it I did however come up with something that is working.
    I added a

    If ActiveCell.Row > 6 Then GoTo jmp

    and below row 6 I added

    :jmp

    I'm sure there are much better ways of doing this but it seems to be working for the moment.

    Thank you all for your help on this.

+ 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] MACRO: If user clicks cancel in inputbox,then do nothing. Problem with inputbox appearance
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2015, 04:33 AM
  2. [SOLVED] If inputbox = false then repeat inputbox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2013, 01:27 PM
  3. InputBox-ow to have a user input text in a inputbox
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2011, 08:17 AM
  4. Screen positioning inputbox that is set as Application.InputBox
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2010, 07:59 AM
  5. Values not coming in few cell but coming in rest all cells
    By rashmib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 11:19 AM
  6. Inputbox button control + msgbox for empty inputbox
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2009, 12:39 PM
  7. [SOLVED] stop all the columns coming up the same length in a chart
    By prinshin in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-21-2006, 05:45 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