Can anyone point me at the way to save an Excel workbook with the “Save Preview Picture” ticked from VBA code
– I’ve looked through the Excel VBA helpfile and can find lots of Save… SaveData, SaveHiddenData, etc. but nothing like SavePreview
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Save Preview Property (Excel XP)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Save Preview Property (Excel XP)
- This topic has 3 replies, 3 voices, and was last updated 22 years, 12 months ago.
AuthorTopicWSsculshaw
AskWoody LoungerMay 21, 2002 at 1:24 pm #371177Viewing 0 reply threadsAuthorReplies-
WSrory
AskWoody Lounger -
WSbrucef2112
AskWoody LoungerMay 22, 2002 at 2:48 am #589459Found a microsoft doc that says the property isn’t exposed in VB.
If you have a fixed location for your files or are in control of your users software setup;
How about creating an empty template (or even a plain xls file with its name and extension changed to protect the innocent) with the “Save preview” property set. Then whenever you need to save a file with a preview, open the PreviewTemplate file. (copy sheets or what ever and save).If the file location for template can not be static, you could try this. I did a test sample and it seem to work OK.
I’m using Office2000. I first manually opened a new spreadsheet and set the “Save preview” property and then saved the empty spreadsheet. The xls file was about 34K. I then wrote code to open the file and did a binary read of the file and captured the data. (ditched the file. its not needed any more).I then created a function that uses the file ‘Open strFileName For Binary Access Read Write’ to write the same byte code to a file and close it. Effectively recreating the “base” file whenever I need a spreadsheet with a “Save preview”. So I can now call the function and it creates the spreadsheet in whatever location i would need, then in code open the file as any other xls file and do stuff with it.
Of course Microsoft does not assure you future compatibility.
Your mileage may vary
As a side note:
Something interesting I notice when opening the file with a HEX editor was that I found my name imbedded in the Excel file in two locations. One was from the Author property of the spreadsheet. the second one however must be Microsoft fetching my user name and adding it to the file.
Here’s what I did:
1.open the xls file with a HEX editor and over wrote my name with “X”‘s and save the file.
2. reopen the file with the HEX editor to verify my name was gone.
3. I opened the file with Excel. (Did nothing but close the file. No cell changes, no saves (not even prompted))
4. open the file again with HEX editor and my name was *back* in the file. 1 time.I DID NOT save the file after opening it with Excel and I know I don’t have Autosave for Excel loaded. I then tried it again but instead of overwriting my name with “x”’s I just removed the bytes that contained my name. The file became unusable. Ohhh yeahh I feel warm and fuzzy that Microsoft is in control.
Later,
Bruce -
WSsculshaw
AskWoody Lounger
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
False error message from eMClient (Awaiting moderation)
by
WSSebastian42
16 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
3 hours, 16 minutes ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
3 hours, 39 minutes ago -
Outdated Laptop
by
jdamkeene
8 hours, 42 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
14 hours, 7 minutes ago -
Another big Microsoft layoff
by
Charlie
13 hours, 47 minutes ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
4 hours, 45 minutes ago -
May 2025 updates are out
by
Susan Bradley
14 hours, 12 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
19 hours, 51 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
19 hours, 53 minutes ago -
Drivers suggested via Windows Update
by
Tex265
19 hours, 43 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
17 hours, 28 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
1 day, 2 hours ago -
Apple releases 18.5
by
Susan Bradley
21 hours, 8 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 day, 4 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
1 day, 4 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
12 hours, 3 minutes ago -
No HP software folders
by
fpefpe
1 day, 12 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
9 hours, 47 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 17 hours ago -
Copilot, under the table
by
Will Fastie
1 day, 9 hours ago -
The Windows experience
by
Will Fastie
2 days ago -
A tale of two operating systems
by
Susan Bradley
4 hours, 18 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
2 days, 5 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 20 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 day, 13 hours ago -
Blocking Search (on task bar) from going to web
by
HenryW
16 hours, 5 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
3 days, 13 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
3 days, 14 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.