Re: Reading picture types in vba by macropod
macropod
Mon May 29 17:44:23 CDT 2006
Hi Jethro,
Changing the shapes from inline to floating doesn't have to change your
document layout - all you have to do is to format the floating shape in a
way that replicates its inline behaviour.
Cheers
"JethroUK©" <reply@the.board> wrote in message
news:G4Keg.648$s4.634@newsfe3-win.ntli.net...
> i gave that a try - but unsuccessfully - i cant float the shapes because
> that changes the whole document - tried bookmarking but to do that i still
> have to 'select' all the shapes first & it took even longer
>
> it did give an idea however - i might just add a border to the shapes as
> they're converted and i think i can check for the border without select
the
> shape
>
> thanks for input
>
>
> "macropod" <invalid@invalid.invalid> wrote in message
> news:4e0clpF1caoqaU1@individual.net...
> > Hi Jethro,
> >
> > You could give each converted shape a unique bookmark, then you'd only
> need
> > to look for shapes that lack one.
> >
> > Alternatively, you could paste the converted ones as Shapes (i.e.
> floating)
> > instead of inline, then you'd only need to look for shapes that are
still
> > inline.
> >
> > Cheers
> >
> >
> > "JethroUK©" <reply@the.board> wrote in message
> > news:Tnseg.3786$002.1167@newsfe2-gui.ntli.net...
> > > i have written some code to convert picture files to metafile:
> > >
> > > Sub CompressPictures()
> > >
> > > Dim x%
> > >
> > > With ActiveDocument.InlineShapes
> > > For x% = 1 To .Count
> > > .Item(x%).Select
> > > Selection.Cut
> > > Selection.PasteSpecial , , wdInLine, ,
> wdPasteMetafilePicture
> > > Next
> > > End With
> > >
> > > End Sub
> > >
> > > i add pictures (screenshots) to the document regularly and would
prefer
> > only
> > > to covert the new pics (bitmaps i think) - but i dont know how to read
> the
> > > picture type before writing it - any ideas?
> > >
> > > InlineShapes.Type ?????
> > >
> > >
> >
> >
>
>