ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can I disable autocorrect from within a macro? (https://www.excelbanter.com/excel-programming/288087-can-i-disable-autocorrect-within-macro.html)

BrianG[_3_]

Can I disable autocorrect from within a macro?
 
I've created a Purchase Order form in Excel 97. One problem I've
encountered is that the Autocorrect-"Replace text as you type" action
is on by default. Hence when a user tries to enter the vendor "FWE"
it automatically gets changed to "FEW". Is there a way I can turn the
"replace text as you type" function off from within the macro?

--
BrianG

pikus

Can I disable autocorrect from within a macro?
 
Here you go:

Application.AutoCorrect.ReplaceText = False

Use it in good health. - Piku

--
Message posted from http://www.ExcelForum.com


BrianG[_4_]

Can I disable autocorrect from within a macro?
 

Application.AutoCorrect.ReplaceText = False


Wow, too easy. Do I need to change it back to "True" when I exit the
macro?

--
BrianG



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

pikus

Can I disable autocorrect from within a macro?
 
I would

--
Message posted from http://www.ExcelForum.com


Tom Ogilvy

Can I disable autocorrect from within a macro?
 
If you don't want it disabled.

--
Regards,
Tom Ogilvy

"BrianG" wrote in message
...

Application.AutoCorrect.ReplaceText = False


Wow, too easy. Do I need to change it back to "True" when I exit the
macro?

--
BrianG



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





All times are GMT +1. The time now is 09:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com