?
Solved

Change font style, size, ect

Posted on 1998-09-01
2
Medium Priority
?
158 Views
Last Modified: 2013-12-03
I am using the common dialog control.  I want to use it to change the fonts of my objects.  Is there a way to dynamically change all the fonts?  I have the common dialog control working, but I have to specifiy all controls on my form, I want all my command buttons and labels to change to the specific font and size, etc.

any Ideas?
0
Comment
Question by:check1
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 280 total points
ID: 1432374
check1;
You can do something like this.
Regards
Dalin


Dim myControl as Control

On error goto trap
For each myControl in myform
     myControl.font = YourSelected fonts
  Next
'Exit here
Trap:
  Err.clear
Resume next
0
 

Author Comment

by:check1
ID: 1432375
Thanks!
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question