CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How Do I???

  1. #1
    Join Date
    Oct 1999
    Posts
    44

    How Do I???

    How do I call methods on an ActiveX control in VB?
    I have plance the control in an Excel Spreadsheet and I want to get the current value of the control...specifically the date and assign it to a cell. I am confused about the LinkedCell property and how/if I can use this. Thanks


  2. #2
    Join Date
    Feb 2000
    Location
    South Carolina, US
    Posts
    36

    Re: How Do I???

    Are you wanting to access an activeX controls methods or open en Excel file?

    Use DAO top open Excel, rather than embedding it in an object.

    5 methods showed for the Workseets in Excel:
    Drag, Move, SetFocus, ShowWhatsThis, ZOrder
    To use SetFocus, if the embedded object was Sheet1 you would use:
    Sheet1.SetFocus

    On typing the object name and hitting . a list should come up, anything with an
    icon like that for SetFocus is a method, and can be used the same way




Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured