P
Paris Hilton
Hello reader,
I'm a Business Information Administrator with intermediate VBA skills
(Office 2003). I'd like to ask a question and would like to receive complete
sample code, because I'm just not skilled enough to handle it myself. I have
proven that today.
I'll explain:
An employee works with a VBA application (form in Word 2003), side by side
with a page on Internet Explorer. From that webpage he copies manually data
to controls in the userform. This costs too much (time).
My solution would be to build additional functions in VBA. It goes like
this:
1) Press a button on the form.
2) The code behind "button_clicked" event switches focus to the open
Internet Explorer webpage (defined by the windowtitle in he blue area).
3) I use sendkeys CTRL_A then CTRL_Copy to copy the webpage contents to the
clipboard.
4) Event switches back to the VBA form (Word 2003 instance).
5) VBA code analyses the data on the clipboard and copies the right stuff to
the controls.
I'll be honest, I don't have a clue how to do this and I'm ashamed of asking
so much of you: can and will you provide a working skeleton code?
I suspect the Windows API will be involved (have no experience with that)
and it involves handling the clipboard with VBA (also zilch experience).
If you have a better idea then feel free to address it. However, I may not
embed the page within the form.
Greetings,
Val
I'm a Business Information Administrator with intermediate VBA skills
(Office 2003). I'd like to ask a question and would like to receive complete
sample code, because I'm just not skilled enough to handle it myself. I have
proven that today.
I'll explain:
An employee works with a VBA application (form in Word 2003), side by side
with a page on Internet Explorer. From that webpage he copies manually data
to controls in the userform. This costs too much (time).
My solution would be to build additional functions in VBA. It goes like
this:
1) Press a button on the form.
2) The code behind "button_clicked" event switches focus to the open
Internet Explorer webpage (defined by the windowtitle in he blue area).
3) I use sendkeys CTRL_A then CTRL_Copy to copy the webpage contents to the
clipboard.
4) Event switches back to the VBA form (Word 2003 instance).
5) VBA code analyses the data on the clipboard and copies the right stuff to
the controls.
I'll be honest, I don't have a clue how to do this and I'm ashamed of asking
so much of you: can and will you provide a working skeleton code?
I suspect the Windows API will be involved (have no experience with that)
and it involves handling the clipboard with VBA (also zilch experience).
If you have a better idea then feel free to address it. However, I may not
embed the page within the form.
Greetings,
Val