Marchese Il Chihuahua
Marchese Il Chihuahua

Reputation: 1129

Change size of font incrementally on click

I have searched this database (and the web) but am not having any lucky on the following vba code i would like to write. I would like to put a button on a form in access which upon clicking increases the size of the font in a certain text box. Exactly was we have in Excel, PowerPoint, ect.. Any advice on where to start will be greatly appreciated. Grazie, A

Upvotes: 1

Views: 161

Answers (1)

HansUp
HansUp

Reputation: 97101

A text box's FontSize property is a read/write integer. Since it's writable, your button click could increment the current font size.

With Me.YourTextBoxName
    .FontSize = .FontSize + 1
End With

Upvotes: 1

Related Questions