fionabolt
02-14-2008, 09:22 AM
Anyone know how I can programatically switch off Thumbnail view throughout the Word Application?
The code:
Application.ActiveWindow.Thumbnails = false
Only switches off the thumbnails in the active document.
I want to switch it off throughout the application.
This is because I have some code that creates one document from the template, and then depending on the users preference from a dialog box, adds new documents to the collection of open documents.
Because these new documents, may have thumbnails switched on, I am encountering problems with later aspects of the code. And so really want to switch off Thumbnail view throughout the Word Application.
I have tried the following:
Dim oCC As Object
Set oCC = CustomizationContext
CustomizationContext = NormalTemplate
bTHUMB = Application.ActiveWindow.Thumbnails
Application.ActiveWindow.Thumbnails = False
CustomizationContext = oCC
Any help would be appreciated.
PS - I am using Word 2003
PPS - to replicate the issue.
1. Open Word,
2. Click, View>Thumbnails.
3. Close Word again (unless you close Word the setting will not be stored in your application).
4. Open Word again, every new document you create will have Thumbnails switched on, even if you switch it off in one document, the next new document you create will have Thumbnails switched on again.
The code:
Application.ActiveWindow.Thumbnails = false
Only switches off the thumbnails in the active document.
I want to switch it off throughout the application.
This is because I have some code that creates one document from the template, and then depending on the users preference from a dialog box, adds new documents to the collection of open documents.
Because these new documents, may have thumbnails switched on, I am encountering problems with later aspects of the code. And so really want to switch off Thumbnail view throughout the Word Application.
I have tried the following:
Dim oCC As Object
Set oCC = CustomizationContext
CustomizationContext = NormalTemplate
bTHUMB = Application.ActiveWindow.Thumbnails
Application.ActiveWindow.Thumbnails = False
CustomizationContext = oCC
Any help would be appreciated.
PS - I am using Word 2003
PPS - to replicate the issue.
1. Open Word,
2. Click, View>Thumbnails.
3. Close Word again (unless you close Word the setting will not be stored in your application).
4. Open Word again, every new document you create will have Thumbnails switched on, even if you switch it off in one document, the next new document you create will have Thumbnails switched on again.