+ Reply to Thread
Results 1 to 6 of 6

Need Ms Word Macro to update word content

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    AA
    MS-Off Ver
    Word 2010
    Posts
    26

    Post Need Ms Word Macro to update word content

    ·User must open the word document (attached)
    ·A Input box must appear (all read text fields )
    ·User will type in the multiple information
    ·Then user click on Update & Save button
    ·Must update information from the input box toword doc to its fields without text formatting
    ·Once Update & save, the word document mustsave to the below location
    C:\Users\current active user\AppData\Roaming\Microsoft\Signatures
    ·Replace the file: Albaraka.htm
    Attached Files Attached Files

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Need Ms Word Macro to update word content

    I see no reason for a userform. Why don't you use formfields or content controls? What happens if the user doesn't complete one or more of the fields or makes a mistake? As for the save process, what is meant to trigger it? Saving to a specific location is easy, but what about if there is already a file of that name there?
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    AA
    MS-Off Ver
    Word 2010
    Posts
    26

    Lightbulb Re: Need Ms Word Macro to update word content

    Hi macropod

    Your Question:
    I see no reason for a userform. Why don't you use formfields or content controls? What happens if the user doesn't complete one or more of the fields or makes a mistake? As for the save process, what is meant to trigger it? Saving to a specific location is easy, but what about if there is already a file of that name there?

    My Reply:
    I am not too sure userform ,etc.. But see attachment how i would like like to appear for user.
    If user does not fill any data then these field will be blank but still save.
    Saving to specific location C:\Users\ whatever the active user \AppData\Roaming\Microsoft\Signatures
    The macro must determine based on current login session or user profile used.
    And yes if file (Albaraka.htm) exist then must replace file without confiming the user
    Attached Files Attached Files

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Need Ms Word Macro to update word content

    OK, so you have a userform. What code are you using (please post it) and what parts are you having trouble with? The save code need be no more complicated than:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Need Ms Word Macro to update word content

    Cross-posted at: http://www.msofficeforums.com/word/1...te-fields.html and http://www.mrexcel.com/forum/general...d-content.html
    And that after I've already spent time here helping with the issue!!! Talk about rude ...
    For cross-posting etiquette, please read FORUM RULE 8: http://www.excelforum.com/forum-rule...rum-rules.html
    Last edited by macropod; 04-25-2013 at 12:58 AM.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need Ms Word Macro to update word content

    Thank you macropod.

    Shabeersa,

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1