Thread Tools Display Modes
  #1   Report Post  
louisechapman louisechapman is offline
Junior Member
Posts: 0
Default Macro's not working in word 2010

Hello, im new here and need some help please. I designed a request form in microsoft 2003-2007 that had headings and then a field next to it which i created and assigned a macro to to make the field mandatory so that anyone filling out the request form filled in all the relevant details before they could send it. My work then upgraded my pc to word 2010 and it wiped out all my macros. I have re-written my macros exactly the same and assigned them to all the relevant fields, I have gone on Trust centre and set it to accept macros and saved it as a word - macro enable document and protected it. When i open the document it does not run the macros unless i manually do it and i need it to run upon opening the document as its being sent to different offices and they dont know about macros. Any help would be greatly appreciated, thankyou. The macro I use is:

Sub MustFillIn()
If ActiveDocument.FormFields("Text1").Result = "" Then
sInFld = InputBox("This is a mandatory field and must be filled in, please fill in below.")
Loop While sInFld = ""
ActiveDocument.FormFields("Text1").Result = sInFld
End If
End Sub
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to print current page only in Word 2010 isn't working PRR Microsoft Word Help 4 July 23rd 17 03:59 PM
Office 2010 beta not sending a mail merge thru Outlook 2010 beta? tcsw Mailmerge 0 March 4th 10 01:30 PM
Shrink A3 to A4 for print preview not working in Word 2010 beta jonski Page Layout 2 February 10th 10 05:51 PM
Word 2000 Macro not working properly w/merge Brian Mailmerge 15 July 8th 09 02:11 PM
Macro not working? Johnathan Microsoft Word Help 0 October 2nd 07 09:48 PM

All times are GMT +1. The time now is 03:56 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.

About Us

"It's about Microsoft Word"