![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear Listeners: A very strange phenomenon: A single FMP file with 1 record. It basically contains a field where one can input serach terms for Google. Then an URL is formed that opens Google with the search terms. The field with the search terms is to be filled with a paste script step. In Word the user highlights any string he wants to search in Google. The user clicks on a new menu bar icon in Word. The syntax of the Word macro is: --- Sub Word2Google() ' ' Word2Google Macro ' Macro opgenomen op 27-07-2003 door Christoph Bouthillier ' Selection.Copy s = Shell("C:\Program Files\Claris Corp\FileMaker Pro 4.0\word2google.fp3") End Sub --- So the macro copies the search terms, opens the FMP file, the content is pasted, the user can add domain restrictions and the search button opens Google and closes the FMP file. WORKS LIKE A CHARM. But... (why is there always a "but"?) after binding the single file the Word macro still calls the executable and opens its screen - BUT THERE IS NO FILE!!!!!!!!!! There is just an blank (solution) screen, as if you would start FMP by itself but not open a file yet. I had to resort to writing an AutoIt keyboard macro and compile it. Now I let Word call that macro in that Shell statement, which on its turn calls the bound FMP solution - and it works like a charm again. WHY????? -- Met vriendelijke groet / Mit freundlichen Grüßen / With kind regards Christoph Bouthillier post (-a-t-) no-no-spam tekstotaal dot com Please remove "no-no-spam" when e-mailing me directly - Thanks ------ |
![]() |
| Thread Tools | |
| Display Modes | |
| |