abntelecom
Vendor
I'm looking for a procomm script that would out phone from txt file.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=red] integer Ro = 2 ;* Starting row[/color]
string TypeCell, TNCell
string TypeVal, TNVal
Proc Main
long LinkVar, SystemVar ;* Variables containing DDE Id's.
if ddeinit SystemVar "excel" "system"
ddeexecute SystemVar "[APP.MINIMIZE()]" ;* Minimize Excel
if ddeinit LinkVar "excel" "sheet1" ;* Link to Sheet 1
[COLOR=red] While Ro < 3 ;* first empty Row in Excel [/color]
strfmt TypeCell "%s%d%s%d" "R" Ro "C" 1 ;*set address of cell holding the phone's type
strfmt TNCell "%s%d%s%d" "R" Ro "C" 2 ;*set address of cell holding TN
;*** The following gathers the info
Dderequest LinkVar TypeCell TypeVal
Dderequest LinkVar TNCell TNVal
;*** Then out the phone
transmit "out^M"
waitfor "TYPE: "
transmit TypeVal
waitfor "TN "
transmit TNVal
Ro++ ;* Increment Row Number
Endwhile
Endif
Endif
Endproc
string newCell
string newVal
strfmt newCell "%s%d%s%d" "R" Ro "C" x
Dderequest LinkVar newCell newVal
waitfor "REQ: "