Duplicating a Photo in WORD

billpq

Board Regular
Joined
Oct 19, 2004
Messages
106
I have a Word template that is essentially a sheet of labels (3 columns and 4 rows). I want to insert a picture into the first label position, crop it the way I want, and then have it automatically duplicated to the other 11 label positions. Can this be done with a formula of some sort? So I don't have to manually copy and paste to each label position every time I change the image or how it's cropped?

Thanks!!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
You are probably working with a table; select the desired image and run the code below:

Code:
' Word macro
Sub Bill()
Dim t As Table, r%, c%
If ActiveDocument.Tables.Count = 0 Then
    MsgBox "You do not have a table", vbCritical
    Exit Sub
End If
Selection.Copy
Selection.Delete
Set t = ActiveDocument.Tables(1)
For r = 1 To t.Rows.Count
    For c = 1 To t.Rows(1).Cells.Count
        t.Rows(r).Cells(c).Range.Paste
Next c, r
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,809
Messages
6,174,759
Members
452,581
Latest member
ruby9c

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top