+ Reply to Thread
Results 1 to 4 of 4

Simple Loop until

  1. #1
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Simple Loop until

    All I need is input box "Equipment Used" to loop until anything is input. This can be letters or numbers or any combination.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Simple Loop until

    I wouldn't use loop. But error handle in those case. Also instead of InputBox, use Application.InputBox (which can force specific type of data).

    Something like...
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Simple Loop until

    I should mention I'm not very proficient with coding. It works perfectly except for the R variable doesn't loop back. All I need is a way for it to require input into "equipment used".
    I appreciate your help, but don't really need anything other then for it to loop until a value is input into that box. Just like the IsNumeric loop.

    I really don't want to start over, and I don't understand how to apply your code

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Simple Loop until

    Then use Until Len(R) > 0?

    Oh and in previous code, I forgot to check Len(R).

    So amended code would be.

    Please Login or Register  to view this content.
    Last edited by CK76; 08-11-2017 at 11:09 AM.

+ 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. Simple loop
    By sierpienny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2016, 06:39 AM
  2. [SOLVED] Help with simple for loop
    By Leipzig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2013, 04:19 PM
  3. [SOLVED] A simple loop
    By kbka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2012, 01:21 PM
  4. Simple Loop Question
    By Steve0492 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2011, 10:42 AM
  5. Simple Loop Help Please
    By HBF in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2006, 09:34 AM
  6. [SOLVED] Simple loop in macro
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2006, 05:40 AM
  7. [SOLVED] Simple loop?
    By bushtor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2005, 11:05 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