LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Reading the Registry - CSV Download Flag

Hi

I am trying to read the flag for determining if the
machine will prompt for confirmation when doing a CSV
download.

The code I am using is:

Sub RegRead_new()
Dim wsh As Object
Set wsh = CreateObject("WScript.Shell")
'errors with Type 13 mismatch
MsgBox wsh.RegRead
("HKEY_CLASSES_ROOT\Excel.CSV\EditFlags")
Set wsh = Nothing
End Sub



but it errors

the response from Bill M. on the key location is copied at
the end for info

Any help most welcome

thanks

Tim


"You mean the "Confirm open after download" flag?

Experiment suggests that:
HKEY_CLASSES_ROOT\Excel.CSV\EditFlags has value 65536 if
the flag is NOT set (and 0 if it is). I suspect it might
be a bit-map and so you should probably only change the 1
bit in the key value.

Bill Manville"


 
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
items chosen to download are NEVER all there after download comple jwhitehurst New Users to Excel 3 November 9th 07 04:00 PM
Confirm Open After Download - Reading Registry Tim Childs[_6_] Excel Programming 3 November 30th 03 05:31 PM
Registry Tom Ogilvy Excel Programming 1 July 16th 03 01:02 AM
Registry Patrick Molloy[_4_] Excel Programming 0 July 15th 03 12:45 PM


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

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

About Us

"It's about Microsoft Excel"