I paste a lot of pictures into my report, and I would like to size them each
time I add a picture (picture format size heigh & width).
I recorde a macro using Word XP with no problem. However, with Word 2007, I
am having the following issues during recording (a cassette tape icon
appears):
1) I cannot click on the picture to select
2) I use the keyboard to select the picture
3) I use the ribbon to access the picture formating toolbar and enter height
& width
4) I stop the macro recorder
When I do this, nothing gets recorded. Tried several different methods with
no luck. The only time it does record something is if I type a word. Again,
no macro records when I select the picture and try to do something with it.
Very annoying. BTW, same results starting Winword /A.
Thank you for your help in advance.
Jay Freedman - 22 Nov 2007 16:54 GMT
The macro recorder (by design) doesn't record mouse clicks dealing with
non-text objects. You simply can't record macros that manipulate pictures.
You have to write such macros from scratch.
See this thread for a simple example that you can modify:
http://groups.google.com/group/microsoft.public.word.vba.general/browse_thread/t
hread/8f865a0623982835/ba9ed2e5f368eec8?lnk=st&q=#ba9ed2e5f368eec8

Signature
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
> I paste a lot of pictures into my report, and I would like to size them each
> time I add a picture (picture format size heigh & width).
[quoted text clipped - 12 lines]
>
> Thank you for your help in advance.