Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-19-2018, 11:53 PM
swenniels swenniels is offline Mac OS X Office 2016 for Mac
Novice
 
Join Date: Mar 2018
Posts: 6
swenniels is on a distinguished road
Default Scriptstep delete variable doesn´t work on Word 2016 as it used on word 2011

HI,


one more problem since I changed from WOrd 2011 to WOrd 2016: I had a macro running that delete a variable called "varMerk42" when closing any word document. I put it in Normal => this document:

Code:
Private Sub Document_Close()
On Error Resume Next
ActiveDocument.Variables("varMerk42").Delete
End Sub

It worked perfectly on WOrd 2011. But now it doesn´t work any more: The macro runs (I tested that putting a line with a msg box) but it simply doesn´t delete the variable as wished.

Any ideas?

Thanks, swenniels
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Word 2016 for Mac] SKIPIF condition doesn't work rschnell Mail Merge 3 10-19-2017 02:01 PM
Word 2016 - Delete all Tab stops avonw Word 6 10-07-2017 01:22 PM
Slicer built in 2016 doesn't work in 2013 cdoody Excel 0 10-31-2016 10:25 AM
upgrading from word 2011 to word 2016 classicdining Word 1 07-01-2016 04:37 PM
Word 2007 Font Color Doesn't Work nnicko Word 2 04-16-2010 01:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:16 PM.


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