How to update a single field in Word macro

Hello,
I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field.  There
are other fields in the document, so I do not want to update all the fields.  Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
Thank you

Stefan's response is correct.
Here is a macro that should update only filename fields.
Sub FileNameFieldUpdateAllStory()
' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
' repaired by Jezebel
' All Story Field Updater - Filename fields
Dim oField As Field
Dim oStory As Range
' On Error Resume Next
For Each oStory In ActiveDocument.StoryRanges
' This goes into headers and footers as well as the regular document
Do
For Each oField In oStory.Fields
If oField.Type = wdFieldFileName Then
oField.Update
End If
Next oField
Set oStory = oStory.NextStoryRange
Loop Until oStory Is Nothing
Next oStory
End Sub
See Installing Macros for help in using this.
Charles Kenyon Madison, WI

Similar Messages

  • How to update ADRT-REMARK field (by which tcode)?

    How to update ADRT-REMARK field (by which tcode)?

    Hi,
    ADRT-REMARK basically stores the notes which you enter against any communication number such as Telephone Number, Fax number etc for any business partner.
    Say for example if you want to address details of a customer via XD01 or XD02; then in the communication tab enter the telephone number or fax number.
    Click the button to add more details or more telephone numbers.
    Over there you will find a field called as Comments.
    This field is ADRT-REMARK.
    You do not have a single transaction to maintain this field.
    It depends upon the business partner for whom you want to add the details.
    For a customer it is XD01 or XD02
    For a vendor it is XK01 or XK02.
    For a business partner it is BP.
    For a user it is SU01D.
    Regards,
    Ankur Parab

  • How to update a custom field in declarative workflow with VS 2013

    Hello,
    How to update a custom field in declarative workflow with VS 2013
    any help would be appreciated!!!!!
    Thanks regards, Vignesh.

    Dear all,
    I'm using 4.6C right now, i already implement BADI MEREQ001, but this only valid
    for creating PR via ME51N.
    I found an EXIT_SAPLEBND_001 and tried to implement it,
    but i got another difficulties since how i transfer CEBAN structure to EBAN structure.
    thanks very much.
    Regards,
    Billy

  • How to update a particular field in a form.

    Hi Guys,
    I just want to know how to update a paricular field in a form.
    I want to upadate a field in a view BOM_RESOURCES_V
    for that i've a procedure called process_rtg.
    now i want to know how to use that procedure.

    hi,
    check metalink Note:264711.1 on how to use ROUTING BUSINESS OBJECT API
    ( BOM_RTG_PUB.Process_Rtg package)

  • How to update a Single App

    Hello,
    maybe its a stupid question, but: how is the updating process using a single app?
    Until now we created auto-renewable apps with newsstand using dps folio producer
    itunes connect and viewer builder. We build the issues at the in-app purchases and
    use the unique product-id we specified before in folio producer. That allows apple
    to find the right issue and allows updates as well, right?!?
    Right now i createad a single app without in-app purchases but i can't specify or
    write anywhere the product-id!? Do i have to publish the folio in folio producer,
    export the hole folio, recreating the hole distribution-viewer and re-upload to
    itunes connect? If we only want to update two stacks, should we update them all?
    I want to repeat my self: its a stupid question, but i have no idea, sorry... I'm a rookie...

    The Product ID in a single-issue app isn't important. Updating a single-issue app is fairly painless:
    1. In Folio Builder/Folio Producer, edit the articles, upload them, update folio, export .zip file.
    2. In Viewer Builder, edit the existing app. Specify the new .zip file. Download, sign and test .ipa file. Download and sign .zip file.
    3. In iTunes Connect, create a new version for your app. Use App Loader to submit new build to Apple.
    Whether you want to fix a single typo or rebuild the entire issue, the steps are the same.

  • How to update a single row of data table

    How we can update a single row of the data table by clicking the button in the same row.
    Thanks in Advance.

    Hi!
    What do You mean 'update'? Get fresh data from DB or change data and commit it in DB?
    If commit, try to read here:
    http://developers.sun.com/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Thanks,
    Roman.

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus,
    Like ECC BAPI: BAPI_MATERIAL_SAVEDATA,
    This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data.
    But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to update this custom enhancement field(ZFIELD) using BAPI(BAPI_MATERIAL_MAINTAINDATA_RT)
    Thanks in advance!

    Hi DongHai,
    I suggest you create your own BAPI. Just copy the codes in BAPI_MATERIAL_MAINTAINDATA_RT and add your custom fields. If you want to append the data of the custom field in table MARA, first, you have to create a structure table then goto SE11, type MARA and display. Click the APPEND STRUCTURE then choose the structure that you've created. Hope this will help.
    Rewards if useful
    Regards,
    Mark

  • How to Update Business Area Field in Posted Document?

    Dear All,
    Pls tell me how to update Business Area in documents which are posted without entering Business Area field. Pls tell me how to achieve this without using Validations & Substitutions. Any table entries can be maintained for this? Kindly guide.
    Regards
    Abhijeet

    Hi,
    I think, you need to post mannually if you have the list of documents posted with out business area.
    ex:
    1.Before posting of accounting entry as below, you should deactivate business area component in OB65 againest your co.code
    2.Post accounting entry as below
    40   123456    without business area     100
    50   123456    with business area ABC  100
    3. Goto T.Code: OB65 activate the business area component.
    4. After posting of accounting entry like above you should run transaction F.5D and F.5E again, make sure that above entry not come again while executing F.5D.
    First you can try this process in dev client, if you are comfort with this process then follow the same in quality and production.
    Note: You can do this transactions in production client, only when there were no users working on the system.
    all the best
    Regards,
    Prasad

  • How to Update the INTRASTAT field for Inclusion/Exclulsion (EIPO-SEGAL)

    I would need to know how to update this field in transaction ENPA when the invoice is already posted ( so we cannot use the VF02) from an ABAP program that update the INTRASTAT data for an Exportation.
    This field can be found in EIPO-SEGAL
    Thanks in advance.

    Hi
    See the Std Doc of this field
    Exclusion/Inclusion indicator for declara. to authorities
    Using this indicator, you can control if a document or a document item (SD billing document, MM purchase order) will be excluded from or included in one or more types of declarations to the authorities.
    Proceed as follows:
    1. Define the inclusion or exclusion indicator. Define for which declaration type an inclusion or exclusion is to take place.
    2. Assign the indicator to the document or document item that you want to include in or exclude from a declaration. The assignment takes place in the Foreign Trade data of the document.
    3. If you also want to exclude document items with particular item types from a declaration, assign an exclusion indicator to the corresponding item types in Customizing.
    Example
    You want to define an exclusion indicator that excludes documents from the EXTRASTAT and KOBRA declaration. Create an exclusion indicator and select the "exclusion column" in the definition of exclusion indicators for the EXTRASTAT and KOBRA declaration types.
    As soon as this indicator is assigned to a document, this document will not be included in the EXTRASTAT and KOBRA declarations.
    Note
    Inclusion or exclusion indicators assigned at FT data header level in the document apply to all document items if there is no other indicator at item level.
    in our case the values for this field are '01'
    take the help of a functional consultant to populate this field
    Reward if useful
    regards
    Anji

  • How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA

    Hi,
    I want to update a custom field (Appended field) of MARC table using  BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
    Thanks
    Rahul.

    Hi,
    Use the Documentation given for struture in BAPI docuemntation...
    For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
    First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
    Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example,  WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
    Regards,
    Bhargava

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • How to Edit a single field in Report

    Hi Experts,
                        I am new in ABAP and need your help while creating a report.
    My query is, am creating a ALV report and in that report i want only a single field is editable. For example, suppose in sales order report, there is 20 fields  but i want to edit only Quantity fields and anyone can change the quantity based on their requirements. I tried but not succeed in this terms.
    Waiting your reply.... thanks
    Moderator Message: Baisc question. Please search for available information before turning to the forums for help.
    Edited by: kishan P on Sep 3, 2010 5:42 PM

    Hi Kumar,
    data: ft_cat type lvc_s_fcat. Create field catalog.
    If ft_cat-fieldname = 'Quantity fields'.
    ft_cat-edit = 'X'
    I hope this may helpfull.
    Thank You,
    Thanks,
    AMS

  • How to update Business area field for alread

    Hi,
    Recently we activated Business area financial statements in our system. After that all SD entries are showing Business area field in all SD billing-Accounting documents.
    But the entries before the above change were not showing Business area since it was not activated before. But i want to update the Business area for the old documents also. so that it will be useful for me in reporting purpose.
    Kindly suggest me if there is any PROGRAM to update Business area field for the old documents.
    Thanks
    Sunil

    Hi,
    Please check the OSS Note 549182 - FAQ: Business Area Accounting
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=549182
    Also OSS note 41294:-
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=41294
    Regards,
    Gaurav

  • How to update for single batch id in one a table by using mutiple parametrs

    Hi Everyone,
    I need simple pl/sql logic to update one table using with some parametrs.I need a logic for single batch_id there will be 100 of records are there .how do i update my custom table ? how do i show how many records have been updated for each batch ? how to handle excpetions while updating ?Som body could help me it will be great.
    -- Sample Code
    PROCEDURE UPDATE_table (P_IN_BATCH_ID IN Number,
    P_IN_TRANS_ID IN number,
    P_IN_TRANS_STATUS IN varchar2,
    P_IN_ERROR_MSSG IN varchar2
                                                 ) is
    cursor
    select*from xx_cust_table
    BEGIN
    UPDATE xx_cust_table
    SET TRANSMISSION_ID=P_IN_TRANS_ID
    TRANSMISSION_MSG=P_IN_TRANS_STATUS     
    PROCESSED_FLAG=P_IN_ERROR_MSSG
    where BATCH_ID=P_IN_BATCH_ID
    END UPDATE_table;

    PROCEDURE UPDATE_table (P_IN_BATCH_ID IN Number,
    P_IN_TRANS_ID IN number,
    P_IN_TRANS_STATUS IN varchar2,
    P_IN_ERROR_MSSG IN varchar2
    ) IS
    BEGIN
    UPDATE xx_cust_table
           SET TRANSMISSION_ID=P_IN_TRANS_ID
                  TRANSMISSION_MSG=P_IN_TRANS_STATUS
                   PROCESSED_FLAG=P_IN_ERROR_MSSG
      WHERE BATCH_ID=P_IN_BATCH_ID;
    DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT||' rows updated!');
    --EXCEPTION
    --  WHEN DUP_VAL_ON_INDEX THEN
    --    DBMS_OUTPUT.PUT_LINE('Duplicate value');
    --  WHEN OTHERS THEN
    --   <display sqlcode and sqlerrm>
    END UPDATE_table;

  • How to update XREF1, XREF2 fields

    Guyz,
    i've captured few custom values for specific G/L Documents during creation through BTE.... if i want to give user to change the values selected during creation, i'm looking for options to change xref1, xref2 fields in BSEG....
    no bapis found..... FI_DOCUMENT_CHANGE doesn't work for XREF1, XREF2 if my doc is G/L Account (BSEG-KOART = 'S') ....
    following are my thoughts, and want your suggestions on this or any advise pls...
    1>> BDC
    2>> direct update BSEG (i'm afraid of transaction integrity aswell, so require all tables to update , if required....
    OR
    any other miracle?
    thanks in advance

    HI,
    Can you please share your solution.
    Thanks,
    Themba

Maybe you are looking for

  • SOAP API integration problem with OIM 11g R1

    Hi, We're facing a problem when we are attempting to provision for a third party Web Service application in OIM 11g R1. During development and test running in an IDE environment, JDeveloper, the soap wsdl requests are triggered and a response is rece

  • Issue in  product category replication from R/3 to SRM

    Mehul G Shah: BACKGROUND: We are in the process of replicating Material Group from R/3 to SRM using transaction R3AR2 & R3AR4. Our Pre-Production server got refreshed recently & this has caused all EBM data inclucing Logical System & Destination bein

  • Sun java studio enterprise 8 - Deployment FAILED error

    could anyone please help? When I try to Deploy a EJB module and webservice I get Deployment failed: run-deploy: Starting server Sun Java System Application Server 8.1 /app/sun/jstudio_ent8/AppServ8.1UR2/bin/asadmin start-domain --domaindir /app/sun/j

  • Creating a PDF from an internal website

    I am trying to create a PDF of a website but it can not bypass the 'sign in' page, despite me being already signed in. Are there any solutions to this as I need to archive the site before it is removed completely.

  • Reloading os x 10.2

    a friend of mine who predominantly uses OS 9 needed to boot into OS X (10.2), but it appears the setup is damaged somehow. It had worked before, but restart options no longer sees the os X boot ution If he reinstalls OS 10.2.1 (the version on his ins