Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 1 Sep 2005 03:14:05 -0700,    group: microsoft.public.word.word6-7macros        back       


macro that saves half of the pages of the document   
hi,

really nedd help hear, i want to automatically save (if possible in HTML 
format) half of the pages of the document. the new doc need to be saved in 
the same name in a sub directory.

any help will be appreciated.

Gil
date: Thu, 1 Sep 2005 03:14:05 -0700   author:   gilsha

RE: macro that saves half of the pages of the document   
Hi,
I am not sure if this would but,

get the number of pages and divide that by 2 you get the pages in half the 
document store this value in a variable, now set the range of the document to 
1st page and the value in the variable, copy the the text in the range. Store 
the name of the file in a variable calle filename.To save it as a different 
file name add a new file, using the documents.add, and paste the selected 
text into the new document and use the activedocument.saveas, pass the format 
as html  and you can give the path where it has to save the file to use the 
same naem as  the document use the value stored in the variable filename.

Hope this was not confusing.

record a marco that  would save the file as html file nad edit the macro.

Hope you found this helpful.

Anand
-- 
"Who will guard the guards?"


"gilsha" wrote:

> hi,
> 
> really nedd help hear, i want to automatically save (if possible in HTML 
> format) half of the pages of the document. the new doc need to be saved in 
> the same name in a sub directory.
> 
> any help will be appreciated.
> 
> Gil
>
date: Mon, 5 Sep 2005 21:21:02 -0700   author:   Anand.V.V.N

Google
 
Web ureader.com


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