A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » General Discussions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sub Procedure for File Save As PDF or XPS menu option



 
 
Thread Tools Display Modes
  #1  
Old February 19th, 2010, 07:28 AM posted to microsoft.public.office.misc
gsbakshi
external usenet poster
 
Posts: 2
Default Sub Procedure for File Save As PDF or XPS menu option

Hi,

I need to give a message to the user once he/she clicks on the File Save As
PDF or XPS menu option in Word 2007.

I have tried with Sub FileSavePdfOrXps() but it is not working.

Can any one let me know which is the exact sub procedure which is invoked?
Thanks in advance.
  #2  
Old February 20th, 2010, 03:05 PM posted to microsoft.public.office.misc
Susan Ramlet[_2_]
external usenet poster
 
Posts: 278
Default Sub Procedure for File Save As PDF or XPS menu option

You haven't placed any of the code you tried in the Sub, so it would be hard
to troubleshoot.

Have you used the Office 2007 Developer Reference on MSDN? It's really
great. Perhaps you can customize what happens when someone uses that
command--there may be other ways to accomplish your objective.

Here's a link to the Word Developer Reference:

http://msdn.microsoft.com/en-us/library/bb244391.aspx

Here's a link to how you might modify a Word command:

http://msdn.microsoft.com/en-us/library/bb208951.aspx

Hopefully that will get you going.


--
Susan Ramlet
--
please reply to the newsgroup so all may benefit.

"gsbakshi" wrote in message
...
Hi,

I need to give a message to the user once he/she clicks on the File Save
As
PDF or XPS menu option in Word 2007.

I have tried with Sub FileSavePdfOrXps() but it is not working.

Can any one let me know which is the exact sub procedure which is invoked?
Thanks in advance.


  #3  
Old February 22nd, 2010, 06:54 AM posted to microsoft.public.office.misc
gsbakshi
external usenet poster
 
Posts: 2
Default Sub Procedure for File Save As PDF or XPS menu option

Hi Susan,

Thaks for replying. I did go through both the links provided by you but
could not get an answer to my question.

I am trying to figure out the Sub Procedure for File Save As PDF or XPS menu
option so that i can display a customized message in clicking this menu
option.

I have tried the following Sub Procedures:

Sub FileSaveAsPdfOrXps()
MsgBox "Hi."
End Sub

Sub FileSavePdfOrXps()
MsgBox "Hi."
End Sub

Sub AdvertisePublishAs()
MsgBox "Hi."
End Sub

But none of the procedures are being invoked on click of the menu option.

Please let me know which is the correct Sub Procedure that is invoked when
we click Save As PDF or XPS menu option.

Thanks in advance.

Gurpreet.

"Susan Ramlet" wrote:

You haven't placed any of the code you tried in the Sub, so it would be hard
to troubleshoot.

Have you used the Office 2007 Developer Reference on MSDN? It's really
great. Perhaps you can customize what happens when someone uses that
command--there may be other ways to accomplish your objective.

Here's a link to the Word Developer Reference:

http://msdn.microsoft.com/en-us/library/bb244391.aspx

Here's a link to how you might modify a Word command:

http://msdn.microsoft.com/en-us/library/bb208951.aspx

Hopefully that will get you going.


--
Susan Ramlet
--
please reply to the newsgroup so all may benefit.

"gsbakshi" wrote in message
...
Hi,

I need to give a message to the user once he/she clicks on the File Save
As
PDF or XPS menu option in Word 2007.

I have tried with Sub FileSavePdfOrXps() but it is not working.

Can any one let me know which is the exact sub procedure which is invoked?
Thanks in advance.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.