+ Reply to Thread
Results 1 to 4 of 4

Method 'ExecuteExcel4Macro' of object '_Global' failed

Hybrid View

  1. #1
    Registered User
    Join Date
    10-11-2006
    Posts
    8

    Method 'ExecuteExcel4Macro' of object '_Global' failed

    i am trying to read a value from a closed workbook in my function as follows:


    strg = "'C:\DSM\[user.xls]Sheet1'!R1C1" 
    check = ExecuteExcel4Macro(strg) 
    If (Err.Number <> 0) Then 
                    MsgBox (Err.Description) 
    End If

    but ths is giving me error for some reason. I cant seem to find out the problem. can anyone plz help

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by iori
    i am trying to read a value from a closed workbook in my function as follows:


    strg = "'C:\DSM\[user.xls]Sheet1'!R1C1" 
    check = ExecuteExcel4Macro(strg) 
    If (Err.Number <> 0) Then 
                    MsgBox (Err.Description) 
    End If

    but ths is giving me error for some reason. I cant seem to find out the problem. can anyone plz help
    http://vbcity.com/forums/topic.asp?tid=68838 might help.
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    10-11-2006
    Posts
    8
    thanks for the reply, that code also give me the same error. Let me try on a new file.

  4. #4
    Registered User
    Join Date
    10-11-2006
    Posts
    8
    its bcuz i am using it in a cell formula which will always give me error as is not allowed.

+ 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