Reply
 
Thread Tools Display Modes
  #1   Report Post  
JethroUK©
 
Posts: n/a
Default compressing pictures

Picture Compression doesn't work in Word XP (worked fine on previous
versions) - by default Word retains cropped areas of any picture so you can
uncrop it - this can lead to a 12 page document being a whoooooooooping 12
megabytes big - compression basically removes any cropped areas of the
picture perminently

I can do it manually:

Cut the picture
Paste Special (as Picture) - (This discards any cropped areas perminently)

Doesn't work in Code ? - It merely pastes back the pictures in their
entirety (still includes cropped areas)

Sub CompressInlinePictures()
'
' Macro1 Macro
' Macro recorded 28/07/2005 by chris ketchell
'

Application.ScreenUpdating = False
For x% = 1 To ActiveDocument.InlineShapes.Count
ActiveDocument.InlineShapes(x%).Select
Selection.Cut
Selection.PasteAndFormat (wdPasteDefault)
Next
Application.ScreenUpdating = True

End Sub

Any Clues? I'm pretty sure it needs a special data type but i don't know the
value for plain pictures:

Selection.PasteSpecial Link:=False, DataType:=??




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressing pictures in Word does not work. jrsyangl New Users 15 May 11th 23 08:52 AM
problem printing pictures sciencedork Microsoft Word Help 2 June 1st 05 02:45 PM
Problems printing pictures in word sciencedork Microsoft Word Help 0 June 1st 05 12:13 AM
Word Doc with Picture(s) not showing up when you open the document Accaptain Microsoft Word Help 2 May 17th 05 06:44 PM
adding pictures to screensavers Susan @ Ivybank Microsoft Word Help 1 January 20th 05 04:57 PM


All times are GMT +1. The time now is 09:40 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"