Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
setting the width for a picture in a macro
I have the following macro:
Sub Macro1() ' ' Macro1 Macro ' Macro recorded 2/14/2006 by Darin E. Palacky ' Selection.InlineShapes.AddPicture FileName:= _ "F:\Documents and Settings\All Users\Documents\Darin\Signature.jpg", _ LinkToFile:=False, SaveWithDocument:=True How do i set the width and the height for this picture? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
setting the width for a picture in a macro
Try this ...
Sub Macro1() ' ' Macro1 Macro ' Macro recorded 2/14/2006 by Darin E. Palacky ' Set Pic = Selection.InlineShapes.AddPicture (FileName:= _ "F:\Documents and Settings\All Users\Documents\Darin\Signature.jpg", _ LinkToFile:=False, SaveWithDocument:=True) Pic.Width = 200 Pic.Height = 200 -- Enjoy, Tony "Darin Palacky" Darin wrote in message ... I have the following macro: Sub Macro1() ' ' Macro1 Macro ' Macro recorded 2/14/2006 by Darin E. Palacky ' Selection.InlineShapes.AddPicture FileName:= _ "F:\Documents and Settings\All Users\Documents\Darin\Signature.jpg", _ LinkToFile:=False, SaveWithDocument:=True How do i set the width and the height for this picture? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
setting the width for a picture in a macro
Alternatively insert the picture in the document at the size you require and
save it as a formatted autocorrect entry along with any associated text for (say) #dp or Save it as an autotext entry and use your macro to insert the autotext entry -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Tony Jollans wrote: Try this ... Sub Macro1() ' ' Macro1 Macro ' Macro recorded 2/14/2006 by Darin E. Palacky ' Set Pic = Selection.InlineShapes.AddPicture (FileName:= _ "F:\Documents and Settings\All Users\Documents\Darin\Signature.jpg", _ LinkToFile:=False, SaveWithDocument:=True) Pic.Width = 200 Pic.Height = 200 "Darin Palacky" Darin wrote in message ... I have the following macro: Sub Macro1() ' ' Macro1 Macro ' Macro recorded 2/14/2006 by Darin E. Palacky ' Selection.InlineShapes.AddPicture FileName:= _ "F:\Documents and Settings\All Users\Documents\Darin\Signature.jpg", _ LinkToFile:=False, SaveWithDocument:=True How do i set the width and the height for this picture? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Setting text field width as wide as page | Page Layout | |||
Pause macro to select a picture | New Users | |||
Format Picture Macro | Microsoft Word Help | |||
setting cell width | Microsoft Word Help | |||
Setting width of pull-down menus? | Microsoft Word Help |