Most certainly, the documentation states:
object.Queue(Function, Parameter) So, you can do something like: Queue "ReadFile", FN I do this quite frequently and it works fine. From: David [mailto:[email protected]] Sent: Tuesday, April 10, 2012 1:39 PM To: [email protected] Subject: Queued subs and parameters Can I in any way, pass a parameter to a Qeued sub? I.e, I have a sub named ReadFile. I know I can do things like Queue "ReadFile" Sub ReadFile() ' do whatever End Sub 'ReadFile. But can I do anything like: FN = "C:\test.txt" Queue "ReadFile( FN )" Sub ReadFile( Filename ) ' do whatever End Sub 'ReadFile. When I tried the above approach, I had an error thrown at me. So apparently, I cannot do it exactly that way. My question is, if there is another easy work around, Except from setting a Global variable, and have the ReadFile sub handle that one.
