Champak Posted October 31, 2023 Posted October 31, 2023 I'm using an iteration of spell check from My issue is Word randomly launches a bunch of windows out of nowhere with Autorecovery in compatibility mode of some of the spell checks I've run. This happens both when I'm using and not using the app. Odd thing is it isn't all the spell checks I've run, and there is no timing or reason behind this happening. Is there a way to disable the autorecovery in the script?
ioa747 Posted October 31, 2023 Posted October 31, 2023 (edited) file-option-save Edit: probably saves them in one drive Word Options (Save) Edited October 31, 2023 by ioa747 I know that I know nothing
Champak Posted October 31, 2023 Author Posted October 31, 2023 Yeah I found that, and also figured that may have something to do with it. But I would prefer to keep that enabled and maybe turn in on/off when the app is active. If that's not possible now I'm wondering if that's a registry setting that I can access.
Champak Posted November 2, 2023 Author Posted November 2, 2023 I....think....I figured out how to do this through autoit, but I have a couple questions since I can't find out right away if it works since the issue pops up randomly. The way it seems like I have to do this is call the autosave feature after creating the word object like: Global $oWordApp = _Word_Create(False) Global $oDoc = _Word_DocAdd ( $oWordApp ) $AutoSv = $oWordApp.ActiveDocument.AutoSaveOn = False MsgBox(0,0, $AutoSv) Exit What I'm not understanding is 1/ When I set the AutoSaveOn to "False" the msgbox displays "True". Which to me says that the AutoSave is on. 2/ When I turn it off (True and False), in Word it shows that the checkbox is still checked. Do objects work on Word as a whole, or only on the instance that is created while it's created so I wont see changes reflected if I were to look in Word settings?
Andreik Posted November 3, 2023 Posted November 3, 2023 (edited) 10 hours ago, Champak said: 1/ When I set the AutoSaveOn to "False" the msgbox displays "True". Which to me says that the AutoSave is on. No. It means AutoSave is off because $AutoSv will contain the evaluation of the expression $oWordApp.ActiveDocument.AutoSaveOn = False which is true. Why don't you do this to convince yourself? MsgBox(0, '', $oWordApp.ActiveDocument.AutoSaveOn) 10 hours ago, Champak said: Do objects work on Word as a whole, or only on the instance that is created Instance. Edited November 3, 2023 by Andreik
Champak Posted November 19, 2023 Author Posted November 19, 2023 It turns out $oWordApp.ActiveDocument.AutoSaveOn = False doesn't work. Any other idea?
argumentum Posted December 11, 2023 Posted December 11, 2023 (edited) no clue but seeing your bump, would $oWordApp.ActiveDocument.AutoSaveOn(False) or ("False") work ? Edit: https://learn.microsoft.com/en-us/office/vba/api/word.document.autosaveon Edited December 11, 2023 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now