OLE Automation for Word. EditGoto with Word 97

I found a solution. Instead EditGoto, use WW7_EditGoto.
Example:
.- A Word Template whith two bookmarks
(Texto1, Tabla1). A normal bookmark
(Texto1) and a bookmark into a Word
Table (Tabla1).
In the Word Table, is posible change
cell o create a new row with the same
command (NextCell).
The word table has two columns an two
rows.
The first row is the Header.
The second row the first column contain
a bookmark (Tabla1).
.- A Form whit two blocks:
First block with two items:
nombre_doc
texto1
Secod Block (multirecord) whit two items
col1
col2
with a When-Button-Pressed:
DECLARE
application OLE2.OBJ_TYPE;
args OLE2.LIST_TYPE;
BEGIN
-- Start WordBasic and make Word visible
application:=OLE2.CREATE_OBJ('Word.Basic');
OLE2.INVOKE(application, 'AppShow');
-- Open a Word document
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,'Plantilla.dot');
OLE2.INVOKE(application, 'FileOpen', args);
OLE2.DESTROY_ARGLIST(args);
-- Put Text in the first bookmark
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,'Texto1');
OLE2.INVOKE(application, 'WW7_EditGoto', args);
OLE2.DESTROY_ARGLIST(args);
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,:Texto1);
OLE2.INVOKE(application, 'Insert', args);
OLE2.DESTROY_ARGLIST(args);
-- Send data from Multirecord Block to Word Table
GO_BLOCK('MULTI');
FIRST_RECORD;
IF :SYSTEM.RECORD_STATUS != 'NEW' THEN
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,'Tabla1');
OLE2.INVOKE(application, 'WW7_EditGoto', args);
OLE2.DESTROY_ARGLIST(args);
LOOP
IF :col1 IS NOT NULL THEN
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,:col1);
OLE2.INVOKE(application, 'Insert', args);
OLE2.DESTROY_ARGLIST(args);
END IF;
OLE2.INVOKE(application, 'NextCell');
IF :col2 IS NOT NULL THEN
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,:col2);
OLE2.INVOKE(application, 'Insert', args);
OLE2.DESTROY_ARGLIST(args);
END IF;
EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
NEXT_RECORD;
OLE2.INVOKE(application, 'NextCell');
END LOOP;
-- Save a Word document
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,:nombre_doc);
OLE2.INVOKE(application, 'FileSaveas', args);
OLE2.DESTROY_ARGLIST(args);
--Release the OLE object
OLE2.RELEASE_OBJ(application);
END;
Sorry by the sintax, but i don't speak English.
I hope it solves this problem.

Hello,
I am also trying to use the OLE2 package for OLE Automation. But
difference being that I am not using Word but am using an
invisible control for Mail services, using the objects
MAPISession, MAPImessages. If anyone out there had already done
this do please give me a code snippet.
Thanx in advance
Anup Mistry,
Programmer/Analyst,
IIS,Inc
Vasile (guest) wrote:
: Hi Daniel,
: I used OLE with forms 5 ,but now it work without problems in
: forms 6, too.
: A procedure that save doc. look like that:
: procedure filesaveas (fname in varchar2) is
: arglist ole2.list_type;
: begin
: arglist := ole2.create_arglist;
: ole2.add_arg (arglist, fname);
: ole2.invoke (obj_hnd, 'filesaveas', arglist);
: ole2.destroy_arglist (arglist);
: end;
: I hope this help you.
: Vasile
: Daniel Fox (guest) wrote:
: : I am using Forms 6.0
: : Can anyone help with OLE automation using OLE2.
: : I can open Word, document stored in long raw, even insert
data
: : from other form field into the Word Document (only at the
: : beginning of the Document, though).
: : All the File commands, such as FileSaveAs, EditGoTo, etc..
: don't
: : work. They are simply ignored - no error messages, nothing.
: : Does anyone use Word Automation through Forms 6.0?
: : Please, HELP....
: : Thanks in advance,
: : Desperate Daniel.
null

Similar Messages

  • OLE Automation for Acrobat Reader

    Hello guys
    I have been reading some lines about OLE Automation for Acrobat READER and Full Acrobat.
    So far I have seen most saying that Reader is not fully compliant with OLE. I really have zero experience with Adobe and before I buy a full acrobat license, I want to make sure of the following:
    What I need to do is the next 4 simple calls:
    Connect to Acrobat
    Open a pdf file in invisible mode
    Perform "Select All"
    Copy Selection to clipboard
    After that, I will importclipboard to my datawindow and I will be done for my programming task.
    Have you had similar experiences about Acrobat OLE for PDF ?
    some references are in help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp
    Thanks so much in advance for any hint.
    Regards

    Hello again
    Chris, thanks so much for your very quick response.
    At a first glance, the PDF Toolkit looks good and with a good price too, but I did not see if I can call functionality from PowerBuilder code without opening a user interface. Are you familiar with this ?
    Stuart, very nice approach for my need, but I apologize for not explaining clearly what I want.
    I just want to process the content of some lines in the file to find specific strings.
    As you may see, if you open the file with Adobe Reader or Adobe Acrobat and go to the edit menu, by clicking "Select All" and "Copy" you will get the text ready for pasting.
    I want to automate this process to prevent the users from opening the Adobe application.
    I'm now testing with the functions provided by Adobe documentation to perform OLE Automation and ALMOST gave me what I need with the following code:
    Documentation is found in
    http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true 
    // Start Code
    boolean lb
    oleobject luo_app, luo_file
    luo_app = create oleobject
    luo_app.connecttonewobject('AcroExch.app')
    luo_file = create oleobject
    luo_file.connecttonewobject('AcroExch.AvDoc')
    luo_file.open('c:\some_file.pdf')
    // Next three lines are for visual debugging and confirming that file is opening well during testing of code :=)
    luo_file.show()
    luo_file.bringtofront()
    luo_file.setviewmode(1)
    // Next two lines return FALSE, meaning they did not execute because the words "Select All" (or "SelectAll") and "Copy" are not the right words linked to the
    // menu items
    lb = luo_app.menuitemexecute('Select All')    // Neither "SelectAll"
    lb = luo_app.menuitemexecute('Copy')
    // End of code
    Everything works fine except the two lines. The Adobe application is open and the file shown, but when calling "Select All" and "Copy" in the function menuitemexecute, Adobe does not interpret these phrases.
    Just to confirm that menuitemexecute has the right syntax, I tested a call for luo_app.menuitemexecute("find") and this command is well interpreted by Adobe, which immediately opens the find window at the right corner of the file
    I hope not to be too dense with this explanation ( but maybe I was )     :=)
    Thanks for your feedback

  • OLE automation To Print picture in word document

    We are upgrading from 4.6c to ECC 6.0.One of Our OLE automation Report is used to launch the word document to print CV and photo.But the program acts differently to the different Presentation servers even though they all have the same GUI and word versions.Text box and images are drawn at different sizes and at different locations in the word document.
    Please advise.

    Sure,
    I need to make an abap program to execute a word document
    in this document I want to insert a picture
    we have a picture in SAP in the transaction SE78 (Administration of Form Graphics)
    I want to know if I can use this picture or if the only method is to have the picture in local into the PC
    regards
    Patrick

  • Problems opening word files with Word 2011 from a Windows 2012 server volume

    Here is what we are seeing. Open any Word document on our server with Word 2011 (mac) results in an excruciating delay. Even a  simple one page document will take over a minute to open up. The same document opened from the desktop of the mac opens in
    2 seconds. 
    In troubleshooting this I turned on invisibles for my mac and watched the folder on the server where the file resides. Here is what I noticed.
    1. If I open that file from a windows computer there is an invisible temp file created for the file that disappears when I close the document. The file opens on the Windows 7 machine with Office 2010 very quickly (2 seconds)
    2. If I open the file from my mac with the preview of Word 2016 the same temp file is created and the file opens very quickly. (2 seconds).
    3. If I open the file from my mac with Word 2011 it takes over a minute and I don't get a temp file on the server. Closing the document takes just as long.
    So, what I am guessing is that Word 2011 is trying to create the temp file, tries for a minute, and finally gives up and opens the file anyway. When I close the file I am guessing it is looking for that temp file and finally gives up after a minute and closes
    the file anyway. 
    Any insights as to what is going on would be appreciated. Our users are very frustrated with this situations.

    Hi,
    Since the issue only occurs to Word for Mac, I'm not familiar with the mechanism how it opens a file, we mainly supports Office for Windows in this forum. Please post the question in Office for Mac forum for further assistance:
    http://answers.microsoft.com/en-us/mac
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Automator for PDF merge with variable

    Hi - very new to automator, but now very motivated to find a solution to this annoying problem.
    I have to scan expense receipts each week and upload them 1 by 1 into a client time & expense system. I don't think Automator can help me with this one.
    A second system requires all the expense receipts to be merged into a PDF and a 3rd copy emailed to an approver.
    This is what I would like automator to do:
    From my Expenses folder, where all my individual PDF's are located
    I select all my distinct PDF's for a particular week
    Using an automator service, right click style
    Using 'Ask for Text', I would enter the "Week of"
    My selected PDF's are merged into 1 PDF, with the name = "Week of <VAR>"
    Mail starts (can't figure out how to use Gmail in a browser in Automator)
    Creates a message to the approver guy with the merged attachment from #5 above
    Sends the message
    Quits Mail
    I can get the automator to run without the variables trick...but it really would save a lot of time if I could just key it in once (instead of #filename, #email subject, #body of the message).
    I also tried looking up the UUID for the variable and inserting it into the email body and subject line - but it didn't take.
    Can anyone help with this?
    Many thanks
    bforeste

    Can't help you with automator, but you can create an app with the applescript below that will do what you want.
    Procedure:
    1. Open the Applescript Editor by typing Apples in the spotlight search field and hitting 'return' on your keyboard.
    2. Copy the entire script below and paste it into the Editor window.
    3. Hit 'Command-K' on the keyboard and ensure there are no compiler errors. If there are, please look at the script and see if one part of it was highlighted. Report back what part of the script was highlighted and any error messages.
    If the compile didn't produce an error, then:
    4. Hit 'Command-S' on the keyboard, choose a snazzy name ("PDF merger" or something...) and a location to save it in (your Apps or Desktop folders).  Be sure to change the 'File Format:' to Application at the bottom of the Save screen before hitting 'Save'.
    5. The first time you run the app (you run it by double-clicking on it, like any other App), you'll be asked to put in the details manually. On subsequent runs, it will fill in the defaults for you. I haven't set up the default locations for looking and searching for the files as I'm not sure where they would be on your system. I can do that if you tell me the path from your 'home' or user directory.
    Also note, I've written the script so that it doesn't send the message until you've reviewed it. i.e., you might want to double check you've attached the correct file, or add a message. If you want it to send automatically without review change the following lines near the end of the script:
    change the line 'set visible to true' to 'set visible to false'
    change the line 'save' to 'send'
    property defaultFolder : ""
    property msgSubject : ""
    property theRecipient : ""
    property theWeeklyname : ""
    property outputFile : ""
    getInfo()
    mergePDFS()
    sendMail()
    on getInfo()
              display dialog "Type the recipient's email address: " default answer theRecipient
              set theRecipient to the text returned of the result
              delay 0.25
              display dialog "Set the subject of the message: " default answer msgSubject
              set msgSubject to the text returned of the result
    end getInfo
    on mergePDFS()
              display dialog "Please choose the files to merge…" default button "OK"
              set inputFiles to choose file of type "PDF" with multiple selections allowed without invisibles
              delay 0.25
              display dialog "Please choose a folder to save the merged PDF…" default button "OK"
              set outputFolder to choose folder
              delay 0.25
              display dialog "Type the name of the combined pdf (without the .pdf extension): " default answer theWeeklyname
              set theWeeklyname to text returned of the result
              set outputFile to (outputFolder as text) & theWeeklyname & "(" & (count of inputFiles) & ").pdf"
              set pdfFiles to ""
              repeat with p in inputFiles
                        set pdfFiles to pdfFiles & " " & quoted form of POSIX path of p
              end repeat
              do shell script "/System/Library/Automator/Combine\\ PDF\\ Pages.action/Contents/Resources/join.py " & "-o " & quoted form of POSIX path of outputFile & pdfFiles
              return outputFile as alias
    end mergePDFS
    on sendMail()
              tell application "Finder"
                        set theAttachment to outputFile as alias
              end tell
              tell application "Mail"
                        set newMessage to make new outgoing message with properties {subject:msgSubject, content:"" & return & return}
                        tell newMessage
                                  set visible to true
      make new to recipient at end of to recipients with properties {address:theRecipient}
                                  tell content
      make new attachment with properties {file name:theAttachment} at after the last paragraph
                                  end tell
      save
                        end tell
              end tell
    end sendMail

  • Request for iPhone 5 with words of wisdom

    Respected sir, I recently saw your offer words of wisdom and im really looking forward to it. Can you please give me an option on iPhone 5 as I would like to give iPhone 5 to my lovely dad on the fathers day kindly let me as soon as possible. Thank you

    Ralph9430,
    He owns iPhone 4s I was planning to gift him iPhone 5 but i also want that words of wisdom to be written on the back of the phone soo bro is it like possible for me to get it done? On iPhone 5 as the company offers only on iPod and iPads

  • How to send a 100 plus page MS Word Report with Word and pdf. attachments?

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume
    If your mail service allows all of that to be sent as attachments or however you are attempting that then it's possible the email server or servers receiving the email do not allow attachments that large.
    You say you are sending "a combination of MS Word and pdf files and attachments". I've never sent anything like that. I have zipped various files into a zip file then attached that to an email for sending.
    Googles mail appears to allow a total of 25 megabytes of attachments in a single email.
    Yahoo mail appears to allow a total of 25 megabytes also.
    Microsofts mail appears to allow a total of 20 megabytes of attachments in a single email.
    Another option would be to upload everything to your onedrives public folder and provide a link for others to download all of it in the email you send out.
    A single users onedrive supposedly can have up to 10 gigabytes loaded onto it. I suppose all of that could be used by the public folder but maybe not.
    La vida loca

  • OLE Automation , date formatting

    Hi everybody,
    i have a problem with OLE automation for "date" formatting.
    The cell value is correct ( DD/MM/YYYY) , but in some cases the cell option is "Date" ( this is the correct option ) and in other cases the cell option is "General". This last option is wrong because the value is left-justified, meanwhile the "Date" option is right-justified.
    I wish to have the "Date" cell option always. (right-justified)
    Is it possible to set this option with statement "SET PROPERTY OF..." ?
    Thanks in advance.
    Best regards.
    Dario.

    Hi,
    you can use this:
      SET PROPERTY OF H_CELL 'NumberFormat' =
                             'dd\/mm\/yyyy'.
      SET PROPERTY OF H_CELL 'Value'        = '01/01/2012'.
    Regards, Dieter

  • Call OpenOffice through OLE Automation

    Hello everybody,
    I am trying to open an OpenOffice Calc window (similar to Excel)
    from ABAP through OLE automation. My problem with this: it
    is necessary to call an automation method of OpenOffice that
    has a SAFEARRAY (OLE data type) as one of its parameters.
    How do I create a data type that maps to SAFEARRAY in ABAP?
    I have found no example for this.
    My program looks like this, the missing line is the one that
    starts with #4:
    REPORT ZCALC2 NO STANDARD PAGE HEADING.
    INCLUDE OLE2INCL.
    DATA: SERVICE_MANAGER TYPE OLE2_OBJECT,
    DESKTOP TYPE OLE2_OBJECT,
    DOCUMENT TYPE OLE2_OBJECT.
    CREATE OBJECT SERVICE_MANAGER 'com.sun.star.ServiceManager'.
    CALL METHOD OF SERVICE_MANAGER 'createInstance' = DESKTOP
    EXPORTING #1 = 'com.sun.star.frame.Desktop'.
    CALL METHOD OF DESKTOP 'loadComponentFromURL' = DOCUMENT
    EXPORTING #1 = 'private:factory/scalc'
              #2 = '_blank'
              #3 = 0
              #4 = ''.
    FREE OBJECT SERVICE_MANAGER.
    When I run the program, the CALL METHOD returns SY-SUBRC code 2 and I see the following in the trace file:
    <1950=(Error): CALL METHOD "loadComponentFromURL" OF [#13/0x00229C9C/402]
                        #0: STRING "private:factory/scalc"
                        #1: STRING "_blank"
                        #2: LONG "0"
                        #3: STRING ""
    IDispatch::Invoke raised exceptionTypkonflikt.
    <1950=(Error):                                                 Exception fire by :[automation bridge]
    <1950=(Error):                                                 Exception info:conversion not possible!
    <1950=(Error):                                                 Exception code:1001
    <1950=(Error):                  Error occured at Verb  : loadComponentFromURL
    <1950=(Error):                                   Object: 13
    <1950=(Error): SAPAWRFC leaving RfcFlushOle with RfcRaise(CALL_METHOD_FAILED)
    See the <a href="http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XComponentLoader.html">loadComponentFromURL</a> documentation for information on the parameters. Unfortunately it is in UNO IDL, which is specific to OpenOffice. However, a <a href="http://udk.openoffice.org/common/man/spec/ole_bridge.html">mapping</a> to OLE types is available.
    There are many examples how to do this in other programming languages, for example <a href="http://www.oooforum.org/forum/viewtopic.phtml?t=9815">here</a>, but I could not find it in ABAP.
    Thanks for your help,
    Frederic.

    Here is another interesting thing: it's possible to let OpenOffice open a multi selection file dialog from ABAP. It works like this:
    CALL METHOD OF SERVICE_MANAGER 'createInstance' = DIALOG
    EXPORTING #1 = 'com.sun.star.ui.dialogs.FilePicker'.
    CALL METHOD OF DIALOG 'setTitle'
    EXPORTING #1 = 'Hello from ABAP'.
    CALL METHOD OF DIALOG 'setDisplayDirectory'
    EXPORTING #1 = 'file:///C:'.
    CALL METHOD OF DIALOG 'setMultiSelectionMode'
    EXPORTING #1 = 1.
    CALL METHOD OF DIALOG 'Execute'.
    CALL METHOD OF DIALOG 'getFiles' = FILE_ARRAY.
    According to the documentation, last line returns an empty array if no file has been selected. My hope was that I could use this as the 4th parameter of loadComponentFromURL, but I still get "conversion not possible".
    I also wonder what should be the type of FILE_ARRAY - I expected OLE2_OBJECT, but if I try that, I can see in the debugger that the object is not properly initialized (HEADER and TYPE are not 'OBJH' and 'OLE2').

  • PICTURE MTHOD in OLE AUTOMATION

    Hi,
       Can anyone send me information for the "picture" method using OLE AUTOMATION for Excel Objects.
    Thanks and Regards
    AK

    hi
    good
    go through the following links i hope this will help you to solve your problem.
    Re: OLE Automation with Excel
    http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
    http://sap.ittoolbox.com/code/archives.asp?d=3027&a=s&i=10
    thanks
    mrutyun

  • MS-Word Macros with paramers via OLE

    Hi,
    This is probably more of an MS-Word question than a Forte question,
    but somebody out there might have done this before...
    I have some MS Word macros (Originally WordBasic, but recently they
    underwent automatic conversion to become Visual Basic) which take
    parameters.
    I used to call these macros from Forte using DDE.
    These days, it's a lot more fashionable to use OLE automation than
    DDE so I thought I'd give that a go.
    But I can't.
    Word.Applicaiton has a Run() method to run macros, but not macros
    with parameters. Is there a neat way of getting macro parameters
    across to Word?
    - Ed.
    Eduard E Havelaar | For the foolishness of God is wiser
    Information Services Section | than man's wisdom, and the weakness
    University of Canterbury | of God stronger than man's strength
    Christchurch, New Zealand | - I Cor 1:25

    have a look at this here article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Word OLE Automation

    Hi All,
    I have the below scenario.Can any one please suggest a solution.
    I created a variable for OLE object , iole_word_application, and started MS Word with it.
    iole_word_application.ConnectToNewObject("Word.Application")
    Lets say I closed this MS Word instance accidenally, not through automation but manually.
    Now how can I validate through my OLE object variable, iole_word_application,if MS word is still open?
    If MS word is no longer open, I will not try the rest of the automation but will re start MS word.
    Best Regards,
    Kiran

    Thanks a lot for your suggestion Jacob, it helped.
    Now I have the below question as well.
    I have been enhancing my PB application by migrating the DDE operations to OLE operations.
    I could translate most of the DDE commands to OLE but the below.
    We have a DDE call like below.
    ExecRemote("[n=MSWordMacro("Argument to Macro")]", DDE Channel Handle, Window Handle)
    I know how to call the "MSWordMacro" with "Argument to Macro" using OLE.
    iole_word_application.Run("MSWordMacro", "Argument to Macro" )
    But I dont know what "n=" means in the original DDE command and how to convert it to OLE.
    The "MSWordMacro" does not have any return values.
    Can any one help please.

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

  • Re: MS-Word Macros with paramers via OLE

    I did this using an intermediette file. I wrote into a file from Forte, and
    used the Macro to read the file and replace the Variables in my Word Document
    using these values in the file.
    Hope this helps.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]

    Hi Adriane,
    Please search this forum using keywords VBA and Tutorial. You don't have to work through the entire tutorial, but should at least have a look at the section explaining the Object Browser. The Object Browser is the easiest way for you to examine the object model for applications that support OLE automation. The knowledge gained by examining an app's object model is not documentation, exactly, but often provides the important information (syntax, argument values) that a developer wants to know.
    If VBA Help (an Office feature) is installed, pressing <F1> while an element is selected within the Object Browser, will take you to formal documentation for the object model of most Office apps.
    I do recommend taking the time to work through the full tutorial, as I have written it, in hopes that developers will see the similarity between VBA code and equivalent OLE2 code, and how much easier it is to hammer out VBA code (thanks to code completion.) As I mention in the tutorial, I do all prototyping and debugging in VBA. Once the VBA code runs satisfactorily, I port it to OLE2. It sounds like extra work, but once you've seen how quickly you can code and debug VBA code, it doesn't make sense to torture yourself trying to do all this on the OLE2 side.
    Hope this helps,
    Eric Adamson
    Lansing, Michigan

  • I just installed the Lion operating system, basically to upgrade my iPhone. I didn't realize that my Microsoft Office 2004 application would no longer work. I have been using Word for my writing and I receive most of my emails with Word attachments. I hav

    I just installed the Lion operating system, basically to upgrade my iPhone. I didn't realize that my Microsoft Office 2004 application would no longer work. I have been using Word for my writing and I receive most of my emails with Word attachments. I have been using Apple products for years, always touting their reliability and customer service. I am not a techie, I just want to be able to do what I do on the computer and Apple always fulfilled my needs. Now I am told because of some operating system gobbledygook, I have to go out and purchase new software to use Word. This is despicable. I see no particular benefit to using Lion, but I do see a lot of detriments. Apple now seems to have turned into Microsoft, making software obsolete so they can make more money and to **** with the customer. You can be sure that my next computer will be a PC. I have completely lost confidence in Apple.

    I seem to never tire of saying this. It was for Apple when they first announced 10.7 to disclose this. Yes, it was widely reported -- or rather, rumored -- but not by Apple. And many people who have gotten caught by this assumed that Apple itself would have told them beforehand about the loss of this very important feature which they had come to rely on. As far as I know, not even in fine print, does this appear anywhere on the Lion announcement or any of its links.
    I am not saying Apple had to continue Rosetta in Lion, or forever, just that if it was going to be dropped, it should have been made known.
    As relative "insiders" we should not forget that many people don't have the time, habit or interest to do this kind of research. I think it is a breach of trust that Apple has never directly made this announcement or given people the opportunity to decide beforehand if giving up their PPC apps for a new OS is a worthwhile tradeoff.

Maybe you are looking for

  • How come Verizon Wireless will not give their customers a corporate number, email, or address to send complaints?

    I have been with Verizon Wireless for 7 years and I have went through more problems in customer service in the last year then I have in my whole 7 years. Usually if I have a problem they fix it immediately, I tend to call instead of going into a Veri

  • Can I disable broken headphone jack? and get sound to internal speakers?

    HP G72T-200 CTO Notebook PC WINDOWS 7 My laptop has a broken headphone jack (piece of plastic fell out of it) and thinks there is something plugged into the jack and won't default to the internal speakers. I've rolled back, reloaded drivers, run audi

  • Homesharing iPhone Glitch

    I have homesharing setup on both my PC and iPhone. When I try to connect to my PC's library from my iPhone's music app, it connects and shows ALL the songs in the library if I go to the songs tab. But if I go to Artists or Albums tab, it shows less t

  • Improvements for IWork  for iOS

    I write to suggest improving your IWork  for ios application. The applications are very good, but lacks some important features that would help iPad -Iphone users to work better. These absences are:  NUMBERS: - filters  - sort by more criteria  - cat

  • Prices Indexes in Fixed Assets

    Hello: I'm working with FA in 11i and I`m looking for a solution for the following scenario: I must revalue some assets accordingly to this coefficient: Inflation Rate = ( Index Value for Previous Period / Index Value for Period Prior to Previous Per