From: Piri on 13 Mar 2010 05:04 Word 2007 I would like to be able to use a macro (assigned to QA toolbar) to set the format of a (manually) selected picture to WrapTight - one click instead of having to open the Format Picture Layout dialogue each time. Is this possible? Any help gratefully appreciated Piri
From: Graham Mayor on 13 Mar 2010 05:59 On Error Resume Next Selection.InlineShapes(1).ConvertToShape Selection.ShapeRange.WrapFormat.Type = wdWrapTight will work. http://www.gmayor.com/installing_macro.htm -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Piri" <wiremu.pareiha(a)gmail.com> wrote in message news:268f063f-6d1c-402c-99c3-84917334e90b(a)g28g2000prb.googlegroups.com... > Word 2007 > > I would like to be able to use a macro (assigned to QA toolbar) to set > the format of a (manually) selected picture to WrapTight - one click > instead of having to open the Format Picture Layout dialogue each > time. > > Is this possible? > > Any help gratefully appreciated > > Piri
From: Piri on 13 Mar 2010 17:02 Thank you, works a treat Graham, Appreciated. Regards, Piri On Mar 13, 11:59 pm, "Graham Mayor" <gma...(a)REMOVETHISmvps.org> wrote: > On Error Resume Next > Selection.InlineShapes(1).ConvertToShape > Selection.ShapeRange.WrapFormat.Type = wdWrapTight > > will work.http://www.gmayor.com/installing_macro.htm > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web sitewww.gmayor.com > Word MVP web sitehttp://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > "Piri" <wiremu.pare...(a)gmail.com> wrote in message > > news:268f063f-6d1c-402c-99c3-84917334e90b(a)g28g2000prb.googlegroups.com... > > > Word 2007 > > > I would like to be able to use a macro (assigned to QA toolbar) to set > > the format of a (manually) selected picture to WrapTight - one click > > instead of having to open the Format Picture Layout dialogue each > > time. > > > Is this possible? > > > Any help gratefully appreciated > > > Piri
|
Pages: 1 Prev: Word table to XML Next: code for a simple search and replace |