Results 1 to 2 of 2

Thread: Getting Data From EXCEl Inside OLE Container

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    1

    Unhappy Getting Data From EXCEl Inside OLE Container

    Hi everyone,

    I've put an O.L.E. container with a new excel sheet object inside it. I want my user to write in it some data, and then I want to access that data from my VB program. How do I do that?
    Is creating the Container with excel object inside it enough, or do I have to create some other object or do anything else in order to acess information on the sheet? Please help.

    Thanks, Elad

  2. #2
    Member Keger's Avatar
    Join Date
    Jun 2001
    Location
    Detroit (Hell)
    Posts
    57
    Hope this works for you

    Code:
    frmdata.OLE1.DoVerb (-1)           'Activate OLE for editing
    frmdata.OLE1.Action = 7            'Make sure OLE is most current
    Set objSheet = frmdata.OLE1.object.ActiveSheet     'Create and object for editing

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