LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Application.OnTime -- Unable to Pass Macro with Numeric Parameter

I am having trouble with Application.OnTime when specifying a Macro
with Numeric (Byte) parameter. Here is the code:

macro I'm calling:
Public Sub mcrExtractIntraData(bteIntraday As Byte)

Failed attempts:
1)
NextIntradayTime = Now + TimeValue("00:01:00")
strProc = "mcrExtractIntraData" & " 1"
Application.OnTime NextIntradayTime, strProc

2)
NextIntradayTime = Now + TimeValue("00:01:00")
Application.OnTime NextIntradayTime, "mcrExtractIntraData " & 1

3)
NextIntradayTime = Now + TimeValue("00:01:00")
Application.OnTime NextIntradayTime, "'mcrExtractIntraData 1'"

Any help greatly appreciated.

 
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
Pass date parameter into MS Query Richard Edwards Excel Discussion (Misc queries) 2 June 20th 08 11:43 AM
Is it possible to pass a parameter into IN operator in Query? DennisS Excel Discussion (Misc queries) 0 June 26th 07 09:27 AM
How to pass a workshhet name as a parameter into a subroutine ? yigalb Excel Discussion (Misc queries) 4 January 9th 05 10:28 AM
Pass Parameter to Access Query Al Excel Programming 3 April 29th 04 10:15 AM
unable to close macro using auto_close or application.quit gloria Excel Programming 1 January 14th 04 07:50 AM


All times are GMT +1. The time now is 06:27 AM.

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

About Us

"It's about Microsoft Excel"