![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
Trying to set the "ctrl" font to BOLD.....
Sub cnmsUForm() Dim cnmsUF As VBComponent, ctrl As Control Dim i As Integer, top As Integer Set cnmsUF = ThisWorkbook.VBProject.VBComponents.Add(3) With cnmsUF .Properties("Caption") = "CNMS Data Analysis" Set ctrl = .Designer.Controls.Add("Forms.Commandbutton.1", "cb1", True) With ctrl .top = 10 .Left = 10 .Height = 18 .Width = 100 .caption = "Get Files" '.caption.Font.FontStyle.Bold = True End With End With End Sub HELP !!!!!! _________________ VisLord --> [ This Message was edited by: VisLord on 2002-04-28 13:24 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Kobe, Japan
Posts: 1,420
|
Hi VisLord. Try this.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
Thanks, Colo
I thought I had tried that... tried every thing else... That worked... Duh... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|