Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Graphics / June 2004

Tip: Looking for answers? Try searching our database.

Format picture with macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LDMueller - 23 Jun 2004 14:21 GMT
Hello:

We have Windows 2000 SP3 and MS Word 2000.

I am trying to build a macro to select, then format a
picture in my document, making the Layout "Behind text",
and under Advanced Layout, putting a check next to "Lock
anchor and Allow overlap" and uncheck "Move object with
text".  This is on the Picture Position tab.  

Unfortunately, when I click on the picture once I start
recording the macro, I can't access it to make any changes.

How do enter the code for that please?
Cindy M  -WordMVP- - 24 Jun 2004 19:12 GMT
Hi LDMueller,

> We have Windows 2000 SP3 and MS Word 2000.
>  
[quoted text clipped - 7 lines]
> recording the macro, I can't access it to make any changes.
>  
See if this works in a Sub (macro)

Dim shp As Word.Shape

Set shp = Selection.ShapeRange(1)
With shp
   .RelativeHorizontalPosition _
= wdRelativeHorizontalPositionPage
   .RelativeVerticalPosition _
= wdRelativeVerticalPositionPage
   .LockAnchor = True
   .WrapFormat.Type = wdWrapNone
   .ZOrder msoSendBehindText
End With

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.