Can I dynamically change document style through a userform?

A

Abhilash

Hi,

I have created a VBA program.
Now I am trying to change the font of the already selected text in the
activedocument through a user form. Currently it doesnot change dynamically.
If I close the user form the document reflects the changes.

Could you please suggest me how to do this?
 
C

Cindy M.

Hi =?Utf-8?B?QWJoaWxhc2g=?=,
I have created a VBA program.
Now I am trying to change the font of the already selected text in the
activedocument through a user form. Currently it doesnot change dynamically.
If I close the user form the document reflects the changes.
It should be changing, but you might not be seeing it.

1. Where do you have the code to make the change (which event are you using)?

2. You don't have an Application.ScreenUpdating = False in your code,
anywhere?

3. If you put an Application.ScreenRefresh call in at the end of the procedure
that's changing the formatting does that help?

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top