Reply
 
Thread Tools Display Modes
  #1   Report Post  
JethroUK©
 
Posts: n/a
Default Anyone know how to cut n paste pictures?

Picture Compression doesn't work in Word XP for some reason (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:=??





  #2   Report Post  
JethroUK©
 
Posts: n/a
Default

i realise this is a difficult one


"JethroUK©" wrote in message
...
Picture Compression doesn't work in Word XP for some reason (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
paste special - unformatted text Tom Microsoft Word Help 1 July 16th 05 07:17 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
paste options button no longer visible Wendy Microsoft Word Help 3 January 8th 05 10:31 AM
Very Slow Copy and Paste Growler Microsoft Word Help 0 January 3rd 05 09:35 PM


All times are GMT +1. The time now is 08:21 PM.

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"