Go Back   Access World Forums > Apps and Windows > Word

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 11-13-2012, 01:29 AM   #1
paraclete
Newly Registered User
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
paraclete is on a distinguished road
Macro to insert size and position picture

Hi. I need a macro to insert a picture into a word document, resize it (no problem so far as I have found I can do that with record a macro) but I also need to format it to behind the text and position it on the page. These last two are grayed our during macro record, and I cannot select the picture. Are there statements to do these functions in a macro and if so what are they or where can I find them please? Thanks in advance for your help and insights.

paraclete is offline   Reply With Quote
Old 06-19-2013, 11:36 AM   #2
gerry@docshop.ie
Newly Registered User
 
Join Date: Jun 2013
Posts: 41
Thanks: 1
Thanked 4 Times in 4 Posts
gerry@docshop.ie is on a distinguished road
Re: Macro to insert size and position picture

I use the WITH statement to insert and manipulate my logo onto various documents


Sub ChangePicture()
'
' Change Picture properties Macro
' type a '.' inside the with statement to see all the options available
'
With ActiveDocument.Shapes.AddPicture("FilePath and Name")
'change the Wrapping
.WrapFormat.AllowOverlap
.WrapFormat.Type = wdWrapBehind

'Change the position in centimeters
.Top = CentimetersToPoints(1.2)
.Left = CentimetersToPoints(2.5)


End With
End Sub
gerry@docshop.ie is offline   Reply With Quote
Old 06-20-2013, 01:27 AM   #3
paraclete
Newly Registered User
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
paraclete is on a distinguished road
Re: Macro to insert size and position picture

Thank you, I'll check it out

paraclete is offline   Reply With Quote
Reply

Tags
format , macro , picture , word

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro in Word to insert and format a picture? caddcop Word 1 11-10-2011 09:57 AM
FileDialog - Window Position and Size darbid Modules & VBA 2 02-22-2009 09:54 AM
form size and position Leong Forms 3 01-11-2007 12:14 AM
How to select the position of a picture when inserting Picture in MS Excel fulltime Excel 11 04-04-2006 04:50 PM
!!!!!WINDOW SIZE & POSITION!!!!! thegump General 2 03-01-2005 11:50 AM




All times are GMT -8. The time now is 02:36 AM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World