+ Reply to Thread
Results 1 to 14 of 14

How do I make sure an Excel session is "secure"?

Hybrid View

  1. #1
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How do I make sure an Excel session is "secure"?

    The point shg was making is that changing a user's settings by rmoving menus, etc can potentially cause problems if the settings are not restored exactly.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  2. #2
    Registered User
    Join Date
    07-12-2008
    Location
    DFW area, TX
    Posts
    7

    Re: How do I make sure an Excel session is "secure"?

    Sorry for the late reply, I've not had access to a machine for more than a few minutes at a time for the last couple of days.

    Thanks to all for the replies. As I stated in my OP, I'm fairly new to this VB thing, and I wasn't aware that Excel was such an inherently non-secure environment.

    I want to particularly thank shg for the multiple items of advice he offered -- I'm incorporating them all! The IgnoreRemoteRequests does indeed force another session to open if the user double-clicks on a workbook (is that what the other forum user meant by "instantiation"?).

    The only remaining "chink in the armor" I can discern at this point is the user's ability to drag another workbook into the window. Shg's suggestion regarding the Workbook Deactivate event is useful, but unfortunately it only enables me to detect that another workbook has been opened AFTER that workbook's Workbook_Open or Auto_Open procedures have already executed, so a really malicious user could have concievably already caused some damage. What I'm working on now is a procedure that will automatically and privately notify me of such illicit activity, preferably by email. However, sending an email via a macro from the user's machine through Outlook will open a warning message on his screen, and I don't want that to occur, and it seems there's no way to prevent that. So maybe SMTP or MAPI is the way to go, but that doesn't appear to be too easy, either. We do have IM on all the machines at work, so perhaps that's an option, but I've never used it so I'm clueless about that, too.

    Any suggestions, anyone?

    Thanks again,
    Mark

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How do I make sure an Excel session is "secure"?

    Re: email check out CDO: http://www.rondebruin.nl/cdo.htm

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How do I make sure an Excel session is "secure"?

    ... the Workbook Deactivate event is useful, but unfortunately it only enables me to detect that another workbook has been opened AFTER that workbook's Workbook_Open or Auto_Open procedures have already executed ...
    Look at the AutomationSecurity property.
    ... so a really malicious user could have concievably already caused some damage.
    I stand by my earlier comment on that.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    07-12-2008
    Location
    DFW area, TX
    Posts
    7

    Re: How do I make sure an Excel session is "secure"?

    DonkeyOte, thanks for that link. I'll try that stuff out as soon as I get back to the office, and see if it works there.

    Quote Originally Posted by shg View Post
    Look at the AutomationSecurity property.
    Thanks shg, but I've already tried that, and it's not effective against the Workbook_Open procedure in a workbook that's been dragged-and-dropped into the session.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1