Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tweak macro to toggle fixed decimal.

Status
Not open for further replies.

dianemarie

Instructor
Jul 11, 2001
583
US
Hello, I often go back and forth between using fixed decimals. The recorded macro to turn on the fixed decimal option looks like this (minus comments):

Sub ToggleDecimal()
Application.FixedDecimal = True
End Sub

I had it set up to toggle back and forth but I just got a new hard drive and I can't remember how it's done. I know it was easy, I got the code from a book. Anyone know how? Thank you.
 
Hi dianemarie,

There are various ways of doing it but this is probably the easiest ..

Code:
Application.FixedDecimal = Not Application.FixedDecimal

Enjoy,
Tony
 
Thank you Tony, works great. I had to put it one line though, to get it to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top