Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Save preview picture

Hi,


Under the workbook properties tab, there's a checkmark called 'Save
preview picture'.

How to read/set this setting by VBA code?


Thanks,

CE
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Save preview picture

Hi,


Under the workbook properties tab, there's a checkmark called 'Save
preview picture'.

How to read/set this setting by VBA code?


Thanks,

CE


I'm not sure but this might be included in the functionality wrapped in
the DsoFile.DLL component!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Save preview picture


"Charlotte E." wrote in message Hi,


Under the workbook properties tab, there's a checkmark called 'Save
preview picture'.

How to read/set this setting by VBA code?


Thanks,

CE


AFAIK the only way is with SendKeys, try this

SendKeys "^{PGUP}^{PGUP}^{HOME}^{PGDN}%V+{ENTER}"
Application.Dialogs(xlDialogProperties).Show

To turn off change that "+" to a "-"

Regards,
Peter T
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Save preview picture

The SendKeys solutions works, but can it really be true that there's no
way of accessing this by standard VBA-code, when you can access all the
rest of the workbook properties?!?

Did Microsoft forget/oversee this option???
Pr, what's the reason for keeping this one out?

Do we need an API call for this???


CE


Den 08.05.2013 16:12, Peter T skrev:

"Charlotte E." wrote in message Hi,


Under the workbook properties tab, there's a checkmark called 'Save
preview picture'.

How to read/set this setting by VBA code?


Thanks,

CE


AFAIK the only way is with SendKeys, try this

SendKeys "^{PGUP}^{PGUP}^{HOME}^{PGDN}%V+{ENTER}"
Application.Dialogs(xlDialogProperties).Show

To turn off change that "+" to a "-"

Regards,
Peter T

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Save preview picture

The SendKeys solutions works, but can it really be true that there's
no way of accessing this by standard VBA-code, when you can access
all the rest of the workbook properties?!?

Did Microsoft forget/oversee this option???
Pr, what's the reason for keeping this one out?

Do we need an API call for this???


I looked deeper into DsoFile and see that it only handles
SummaryDocument and Custom properties. So then, if there's an API that
would duplicate what Peter's sendkeys does I expect it would be
SendMessage. This would require getting the handle of the properties
dialog as well as knowing what parameters to pass.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 Default to Save Preview Picture hawaiiham2000 Excel Discussion (Misc queries) 1 December 1st 09 04:30 PM
Looping folder changing - Save Preview Picture Piranha[_50_] Excel Programming 2 October 2nd 05 12:33 PM
Wish to apply "Save Preview Picture" in 300 files. Carolyn Crandall Excel Discussion (Misc queries) 0 March 30th 05 09:09 PM
Wish to apply "Save Preview Picture" in 300 files. Jim May Excel Programming 3 March 30th 05 09:09 PM
Switching off 'Save preview picture' in Excel Bostjan Excel Programming 1 December 11th 03 07:22 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"