Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Sun, 4 Nov 2007 06:55:01 -0800,    group: microsoft.public.publisher.programming        back       


Close Publisher Document Without Save changes   
I have a publisher document with an empty picture frame that it will be use 
to import pictures from a Digital Camera, but I don't want the final user to 
save that, so i want to know how i can using vba do that.
When you close the document any changes will not be save an no prompt board 
will appear.
I tried the code below without sucess:
Sub CloseWithoutSaving()
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub

Thanks for the support
date: Sun, 4 Nov 2007 06:55:01 -0800   author:   Caramujus

Re: Close Publisher Document Without Save changes   
Caramujus wrote:
> I have a publisher document with an empty picture frame that it will be use 
> to import pictures from a Digital Camera, but I don't want the final user to 
> save that, so i want to know how i can using vba do that.
> When you close the document any changes will not be save an no prompt board 
> will appear.
> I tried the code below without sucess:
> Sub CloseWithoutSaving()
> ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
> End Sub

As an initial suggestion, try replacing "wd" with "pb".

-- 
Ed Bennett - MVP Microsoft Publisher
http://ed.mvps.org
date: Sun, 04 Nov 2007 22:44:23 +0000   author:   Ed Bennett

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us