Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-23-2014, 07:04 AM
fumei fumei is offline VBA to identify how Word was invoked Windows 7 64bit VBA to identify how Word was invoked Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Quote:
So I'll rephrase the original question: When in Document_Open, can I look at some system variable to determine what method was used to open the document?
No.
Quote:
As to the next bit, I currently have VBA in Document_Open which immediately shows an Userform etc. So from then on, processing is restricted to options offered to the User.
To amend/update the code, I normally access the document's VBA by opening the document, then use Alt+F11, but the above restrictions mean that option is no longer available to me.
Therefore, at the moment in Document_Open I detect the current User's name, then, for selected Users (me!), I offer the option of normal processing or VBA access.
I do not understand what you mean by "above restrictions". WHAT restrictions? Again, once Document_Open fires ANY code in Document_Open has full access to VBA.

You are talking about two separate things. Manually amending code with the VBE (viia Alt-F11) is one thing. Executing code in Document_Open is something else.

Perhaps if you tried to explain what you are doing. Why are you amending code?
Reply With Quote
 

Tags
document options, document properties, vba script



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to identify how Word was invoked How do you identify the ID of a picture in PowerPoint? CatMan PowerPoint 4 04-17-2012 03:29 PM
How to identify whether Word 2007 was used to create a document saved as Word 2003 noviceatwork Word 0 03-08-2012 06:40 AM
VBA to identify how Word was invoked identify non-members from two lists rterrain03 Office 5 12-01-2011 01:41 PM
how to identify the word files created using Windows or Mac Operating System? mariaprabudass Word 0 08-06-2010 05:52 AM
C# API to identify the uncommitted changes in Excel and Word document? althafuddeen Excel 0 04-06-2010 07:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:55 AM.


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