Robertson1995
Board Regular
- Joined
- Apr 1, 2009
- Messages
- 123
I am using VBA in a program call Reflections WRQ. This is a program I use to telnet into a piece of equipment at work.
In the example code below the site command is entered using an Inputbox, but I need a way to be able to enter the site # only once instead of having an Inputbox pop up every time. The site # never changes. Does anyone know of a way to do this?
Sub test ()
site = Inputbox("enter site #")
session.transmit "site" & chr$(rcCR)
session.transmit "111" & chr$(rcCR)
session.transmit "site" & chr$(rcCR)
end sub
In the example code below the site command is entered using an Inputbox, but I need a way to be able to enter the site # only once instead of having an Inputbox pop up every time. The site # never changes. Does anyone know of a way to do this?
Sub test ()
site = Inputbox("enter site #")
session.transmit "site" & chr$(rcCR)
session.transmit "111" & chr$(rcCR)
session.transmit "site" & chr$(rcCR)
end sub