+ Reply to Thread
Results 1 to 4 of 4

Entering input and clicking buttons during loop

Hybrid View

FlyinJack Entering input and clicking... 03-22-2009, 02:01 PM
shg Re: Entering input and... 03-22-2009, 02:15 PM
FlyinJack Re: Entering input and... 03-22-2009, 06:08 PM
shg Re: Entering input and... 03-22-2009, 07:47 PM
  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Entering input and clicking buttons during loop

    Welcome to the forum.

    Maybe like this:
    Option Explicit
    
    Const nQuest    As Long = 50
    Dim iQuest      As Long
    
    Sub AskQuestion()
        iQuest = iQuest + 1
        If iQuest > nQuest Then
            MsgBox "Done!"
        Else
            With Worksheets("test")
                .Range("B11").Value = iQuest
                .Range("C11").Value = QuArray(iQuest)
            End With
        End If
    End Sub
    
    Sub Submit()
        Worksheets("test").Range("D11:E11").ClearContents
        AskQuestion
    End Sub
    Last edited by shg; 03-22-2009 at 07:48 PM.
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Registered User
    Join Date
    03-22-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Entering input and clicking buttons during loop

    Hey shg,

    Thanks that helped immensely. I would never have thought of doing it like that (i.e. no loop method). My program is now working and I just have some enhancements to make (holes to correct).

    Thanks again for your great help. I’ve learned a lot!

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Entering input and clicking buttons during loop

    You’re welcome. Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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