Vb Script. My Macro text Variables will not pass though VB

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
tic74
Newbie
Posts: 2
Joined: Sun Jul 06, 2003 8:49 am
Location: San Francisco bay area

Vb Script. My Macro text Variables will not pass though VB

Post by tic74 » Sun Jul 06, 2003 9:14 am

:roll:
Can anyone help

Let>bb = cooking

VBSTART
Sub todo(msg)
Dim fs, f ,y
y = msg
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("C:\Documents and Settings\Tim\Desktop\test\wanda.txt", 2, True)
f.WriteLine y
f.Close
End Sub
VBEND

VBRun>todo,%bb%
Thanks TimmyD

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sun Jul 06, 2003 4:05 pm

Quick observation without doing any testing raises the following question ---------

Does removing spaces in Let> help?

Change From:
Let>bb = cooking

To:
Let>bb=cooking
============================

OR inserting space in VBRun> command?

Change From:
VBRun>todo,%bb%

To:
VBRun>todo,%bb %
Last edited by Bob Hansen on Sun Jul 06, 2003 9:11 pm, edited 1 time in total.

tic74
Newbie
Posts: 2
Joined: Sun Jul 06, 2003 8:49 am
Location: San Francisco bay area

Yes that did solve problem successfully Thanks

Post by tic74 » Sun Jul 06, 2003 4:54 pm

:)

Change From:
Let>bb = cooking

To:
Let>bb=cooking
Thanks TimmyD

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts