![]() |
#1
|
|||
|
|||
![]()
Hello
I'm trying to set the shape size of a picture in my header on a landscape page but I just can't get the code to change the size. If ActiveWindow.View.SplitSpecial <> wdPaneNone Then ActiveWindow.Panes(2).Close End If If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _ ActivePane.View.Type = wdOutlineView Then ActiveWindow.ActivePane.View.Type = wdPrintView End If ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader Selection.MoveLeft Unit:=wdCharacter, Count:=1 Selection.MoveUp Unit:=wdLine, Count:=1 Selection.MoveDown Unit:=wdLine, Count:=1 Selection.MoveLeft Unit:=wdCharacter, Count:=2 Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend Selection.Delete Unit:=wdCharacter, Count:=1 Selection.TypeText Text:="land" Selection.Range.InsertAutoText Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend With Selection.ShapeRange .Height = 2.79 .Width = 26.6 End With All I'm wanting to to do is when I insert a landscape page in my document I want to call the autotext for the landscape image (this bits works) and then increase the size of the image from it's portrait size which is 2.78h x 18W 32%. I've tried to record this step with a macro but this doesn't capture the code. Thanks |
#2
|
||||
|
||||
![]()
Cross-posted at: http://www.tek-tips.com/viewthread.cfm?qid=1705506
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184 PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Insert Picture with standard size | styleruk | Word | 4 | 02-10-2014 09:09 AM |
Powerpoint automatically changing picture size when adding a picture (2010) | One_Life | PowerPoint | 7 | 01-20-2012 06:57 AM |
![]() |
roligan | PowerPoint | 2 | 12-22-2011 07:18 AM |
Problem w/ Format Picture (size) | John Woram | PowerPoint | 0 | 01-31-2010 10:29 AM |
![]() |
Roger A Firth | Drawing and Graphics | 6 | 11-01-2009 10:34 AM |