P
Paul Bishop
Here's a challenge for you. I need to get some complex text into a legacy
database running in a VT100 terminal emulator (please don't laugh). So I am
generating the text in Word 97 using dropdown form fields, with VBA running
in the background to conditionally alter other fields. Once done, I have a
button that copies the text to the clipboard. The user switches to the VT100
terminal emulator and pastes the text in. There are two remaining things
that I would like to do.
1) Preserve the bold and underline from the Word text. In the database,
bold is switched on and off with key strokes <crtl-6><b> and underline with
<ctrl-6><u>.
2) Also put data into other fields in the database. I could due this with a
macro in the terminal emulator but I want the data vary depending on the
contents of the Word file. So when I switch to the database, I am thinking
that I need to be able to stuff the keyboard with a sequence of keystrokes.
I realise that the solution may depend on the specifics of the VT100 terminal
emulator that I am using. The terminal emulator runs macros which are held
in files. One possibility is to have VBA write the macro to a file, switch
to the terminal emulator and then run the macro that Word has just produced.
database running in a VT100 terminal emulator (please don't laugh). So I am
generating the text in Word 97 using dropdown form fields, with VBA running
in the background to conditionally alter other fields. Once done, I have a
button that copies the text to the clipboard. The user switches to the VT100
terminal emulator and pastes the text in. There are two remaining things
that I would like to do.
1) Preserve the bold and underline from the Word text. In the database,
bold is switched on and off with key strokes <crtl-6><b> and underline with
<ctrl-6><u>.
2) Also put data into other fields in the database. I could due this with a
macro in the terminal emulator but I want the data vary depending on the
contents of the Word file. So when I switch to the database, I am thinking
that I need to be able to stuff the keyboard with a sequence of keystrokes.
I realise that the solution may depend on the specifics of the VT100 terminal
emulator that I am using. The terminal emulator runs macros which are held
in files. One possibility is to have VBA write the macro to a file, switch
to the terminal emulator and then run the macro that Word has just produced.