+ Reply to Thread
Results 1 to 2 of 2

Run-Time error '91'

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Run-Time error '91'

    Hello
    I'm working on an app developed in VB6 with interaction with Excel VBA
    There are two functions that Utilization properties Excel.Application
    How to use Excel.Application object in both functions?

    ***********************************
    Please Login or Register  to view this content.
    ***********************************
    ***********************************
    Please Login or Register  to view this content.
    ***********************************
    _________________________________________________________
    |Run-time error 91 (Object variable or with block variable not set).|
    _________________________________________________________
    Last edited by arlu1201; 02-14-2013 at 08:48 AM. Reason: Use code tags.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Run-Time error '91'

    Store the variable at module level, not procedure level
    Please Login or Register  to view this content.

+ 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