Ok, I agree with you but "changing size" is only example.
I want to find out an algorithm how to do that user runs macro,
UserForm is opened and user can choose object (image, Textbox e.t.) to
edit it.
So far, I know how to write a macro using in this way:
1) user choose an object
2) user run macro with userform
3) user set size and/or position
4) user has to close UserForm
5) if user want to edit next object, he will have to run macro again
Greg
Hi Greg,
> Ok, I agree with you but "changing size" is only example.
> I want to find out an algorithm how to do that user runs macro,
[quoted text clipped - 6 lines]
> 4) user has to close UserForm
> 5) if user want to edit next object, he will have to run macro again
OK... Would it help you to build a list of objects in the document, to
present in the form? The user can select from the list, make the
changes, click OK, and you do the formatting.
All Shapes have a NAME property. Word will assign it when the shape is
inserted/created, but using VBA the name can be changed. So, roughly:
Dim shp as Word.Shape
For each shp in ActiveDocument.Shapes
frm.ListBox.AddItem shp.Name
Next
> - I use Word 2000
> - I'm currently having only one but big problem: how to start :)
> - "change size" should be done in this way that user set new size (for
> example: 800px x 600px)
> - exactly, the images are Shapes
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :-)