Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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" wrote in message
oups.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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a Public Subroutine in a Different Workbook Raul Excel Programming 2 August 24th 05 04:27 AM
Calling a function from a subroutine loop Dan Excel Programming 1 November 27th 04 01:28 AM
calling a subroutine outside a spreadsheet dino Excel Programming 5 June 11th 04 06:14 PM
Function Calling Subroutine Curare Excel Programming 1 February 24th 04 07:11 PM
Calling the Solver via a subroutine James[_8_] Excel Programming 1 July 10th 03 01:08 AM


All times are GMT +1. The time now is 02:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"