+ Reply to Thread
Results 1 to 2 of 2

Calling a subroutine in a loop

  1. #1
    Jeff@DE
    Guest

    Calling a subroutine in a loop

    This should work but it does not. What am I missing?


    'VBA 2003

    dim ii as integer

    For ii = 1 To 3
    'This should run!!!!!!
    Message
    MsgBox "Time to take a break!"
    Next ii


    Public Sub Message()
    MsgBox "Time to take a break!"
    End Sub


  2. #2
    Bob Phillips
    Guest

    Re: Calling a subroutine in a loop

    Works as I would expect. In what way does it NOT work?

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Jeff@DE" <jeff@thetemples.de> wrote in message
    news:1136748391.879276.201400@g47g2000cwa.googlegroups.com...
    > This should work but it does not. What am I missing?
    >
    >
    > 'VBA 2003
    >
    > dim ii as integer
    >
    > For ii = 1 To 3
    > 'This should run!!!!!!
    > Message
    > MsgBox "Time to take a break!"
    > Next ii
    >
    >
    > Public Sub Message()
    > MsgBox "Time to take a break!"
    > End Sub
    >




+ 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