Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2019, 07:42 AM
Rakyn87 Rakyn87 is offline Unsure why running a macro that generates text is deleting the legacy form field I want the text in Windows 7 32bit Unsure why running a macro that generates text is deleting the legacy form field I want the text in Office 2013
Novice
Unsure why running a macro that generates text is deleting the legacy form field I want the text in
 
Join Date: Mar 2019
Posts: 1
Rakyn87 is on a distinguished road
Post Unsure why running a macro that generates text is deleting the legacy form field I want the text in

Greetings all.



I have a template with several legacy form fields that I want to input information into. I have several macros that generate text. Up until very recently, I was using an older version of word. Essentially I have a hotkey that protects/unprotects the word document, so I would tab through the legacy form fields, unprotect the document, then run a macro.

In the older version, this would generate the text INSIDE the legacy form field. However, I recently upgraded to word 2013, and when I run the macros it deletes the legacy form field and simply puts the text where the field used to be. I have so far been unable to get around this and have been trying for days.

I need a solution that:

1.) Gets the text INSIDE the legacy form field.
2.) Gives me the choice of running several different macros (I can't simply set up a macro to run when exiting the form field, as I have several different to choose from).

Thanks for taking the time to read!
Reply With Quote
  #2  
Old 03-18-2019, 02:12 PM
macropod's Avatar
macropod macropod is offline Unsure why running a macro that generates text is deleting the legacy form field I want the text in Windows 7 64bit Unsure why running a macro that generates text is deleting the legacy form field I want the text in Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Without seeing either a document or the code, it's impossible for anyone to diagnose the issue. Can you attach a document to a post with some representative data (delete anything sensitive) plus the relevant macros? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsure why running a macro that generates text is deleting the legacy form field I want the text in VBA Code to Insert Legacy Text Field PSSMargaret Word VBA 17 06-15-2016 04:22 AM
Unsure why running a macro that generates text is deleting the legacy form field I want the text in Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Unsure why running a macro that generates text is deleting the legacy form field I want the text in Grammar check into legacy forms > Text form field. Eduardo Care Word 2 09-09-2015 03:11 PM
Macro not running on exiting legacy drop down menu. supremegrandruler Word VBA 5 12-11-2014 11:14 PM
Macro to find coloured text and replace with form-field/formtext containing that text tarktran Word VBA 1 11-26-2014 08:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft