Consulting

Results 1 to 5 of 5

Thread: Lock OLE Excel object (VB6)

  1. #1

    Lock OLE Excel object (VB6)

    Is there a way to prevent the user from editing an embedded OLE object on a form? The objects on the forms I have created are displaying read-only data, but if the user double-clicks on the embedded sheet it not only messes up the view going into edit mode but allows the user to make changes. There is no "Locked" property for OLE objects, so I don't know how else I can limit user access.

  2. #2
    Excel has a property called Interactive:
    Application.Interactive=False
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

  3. #3
    Thank you for your assistance. Unfortunately the Interactive property only applies to Excel application objects, not embedded OLE Excel objects. Is there a way to apply this to the form objects?

  4. #4
    If I set the Autoactivate property of the OLE object to manual you cant click on it at all. Is that what you need?
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

  5. #5
    Yes, this is exactly what I need. Thank you!

Posting Permissions

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