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 / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Macro problem with Word 2007

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jimbaum - 22 Nov 2007 04:00 GMT
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.

Rate this thread:






 
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.