May 14th, 2009, 07:25 AM
#1
Pictures in MSWord Aligned.
Hello my Friends ,
After a long visit to hospital with a broken ankle , I am back (although a bit limping) to work.
I searched my post & found my post was not repled,Anyway let me refresh the entire thing to you all if you could help in this.
There is an attachment with this please see & give me some insight on this.
Thank you all in advance
dsrahul.
Attached Images
May 15th, 2009, 01:05 AM
#2
Re: Pictures in MSWord Aligned.
Code:
wrd.Documents.Open filename:=stwr, ConfirmConversions:=False, ReadOnly:= _
False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _
"", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto
'wrd.Selection.PageSetup.Orientation = wdOrientLandscape
'wrd.Selection.InlineShapes(1).ConvertToShape.WrapFormat.Type = wdInLine
wrd.Selection.Range = wdRelativeHorizontalPositionMargin
'wrd.Selection.InlineShapes(1).Align.msoAlignleft , True
wrd.Selection.MoveDown unit:=wdLine, Count:=4
wrd.Selection.EndKey unit:=wdLine, Extend:=wdExtend
wrd.Selection.InlineShapes.AddPicture filename:=MyDir + savt, LinkToFile:=False, SaveWithDocument:=True
wrd.Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
wrd.Selection.InlineShapes(1).LockAspectRatio = msoTrue
wrd.Selection.InlineShapes(1).Height = 142
wrd.Selection.InlineShapes(1).Width = 142
wrd.Selection.MoveRight unit:=wdCharacter, Count:=1
wrd.Selection.MoveDown unit:=wdLine, Count:=1
wrd.Selection.EndKey unit:=wdLine, Extend:=wdExtend
wrd.Selection.InlineShapes.AddPicture filename:=MyDir + savu, LinkToFile:=False, SaveWithDocument:=True
wrd.Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
wrd.Selection.InlineShapes(1).LockAspectRatio = msoTrue
wrd.Selection.InlineShapes(1).Height = 142
wrd.Selection.InlineShapes(1).Width = 142
wrd.Selection.InlineShapes(1).ConvertToShape.WrapFormat.Type = wdInLine
wrd.Selection.MoveRight unit:=wdCharacter, Count:=1
wrd.Selection.MoveDown unit:=wdLine, Count:=1
wrd.Selection.EndKey unit:=wdLine, Extend:=wdExtend
wrd.Selection.InlineShapes.AddPicture filename:=MyDir + savv, LinkToFile:=False, SaveWithDocument:=True
wrd.Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
wrd.Selection.InlineShapes(1).LockAspectRatio = msoTrue
wrd.Selection.InlineShapes(1).Height = 142
wrd.Selection.InlineShapes(1).Width = 142
wrd.Selection.InlineShapes(1).ConvertToShape.WrapFormat.Type = wdInLine
wrd.Selection.MoveRight unit:=wdCharacter, Count:=1
wrd.Selection.MoveDown unit:=wdLine, Count:=1
wrd.Selection.EndKey unit:=wdLine, Extend:=wdExtend
wrd.Selection.InlineShapes.AddPicture filename:=MyDir + savw, LinkToFile:=False, SaveWithDocument:=True
wrd.Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
wrd.Selection.InlineShapes(1).LockAspectRatio = msoTrue
wrd.Selection.InlineShapes(1).Height = 142
wrd.Selection.InlineShapes(1).Width = 142
'wrd.Selection.InlineShapes(1).ConvertToShape.WrapFormat = wdInLine
wrd.Selection.MoveRight unit:=wdCharacter, Count:=1
wrd.Selection.EndKey unit:=wdStory
If KD = 4 Then GoTo 29
If KD > 4 Then GoTo 28
This is the code I failed several times but could not do it. now please focus some light.
May 15th, 2009, 01:40 AM
#3
Re: Pictures in MSWord Aligned.
You keep referring to a certain post somewhere on his forum, post the link to that post here, to give us more insight into what exactly you are struggling with. Posting code, and a "How to" attachment make people think twice in helping...
May 15th, 2009, 02:38 AM
#4
Re: Pictures in MSWord Aligned.
Hannes
Buddy ,Sorry I did not get you ,What you said in the post.
I attached the file about what the output would be.
I did not understand posting link etc.Please clarify.
Thanks once gain
Rahul
May 15th, 2009, 02:59 AM
#5
Re: Pictures in MSWord Aligned.
Where is this thread :
Originally Posted by
dsrahul
I searched my post & found my post was not repled
¿
May 15th, 2009, 04:14 AM
#6
Re: Pictures in MSWord Aligned.
http://www.codeguru.com/forum/showth...and+vertically
Was not what I expected, anyway please try the new one.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width