+ Reply to Thread
Results 1 to 10 of 10

Error while opening macro written excel file attachement in outlook2010

Hybrid View

  1. #1
    Registered User
    Join Date
    11-13-2003
    Location
    India
    MS-Off Ver
    2007
    Posts
    65

    Error while opening macro written excel file attachement in outlook2010

    While opening macro written excel file (xlsm) attachment in outlook 2010, following error is showing during opening the attachemnt, but when the same file is saved in HDD then the excel file is working fine, what is the reason and how to correct it
    my excel and outlook ver is 2010

    error-
    err:91
    Object variable or with block variable not set


    pl. help.
    mast

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Sounds like the code in the workbook open event doesn't like the workbook not being saved.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-13-2003
    Location
    India
    MS-Off Ver
    2007
    Posts
    65

    Re: Error while opening macro written excel file attachement in outlook2010

    Hi .Norie
    I don't understand, you mean to say that the workbook is saving while opening in my code and outlook10 is not allow to save in attachment. pl. clarify

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    I mean the code in the workbook won't work if you try to open it straight from Outlook.

  5. #5
    Registered User
    Join Date
    11-13-2003
    Location
    India
    MS-Off Ver
    2007
    Posts
    65

    Re: Error while opening macro written excel file attachement in outlook2010

    Any remedy for this .any alternative

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error while opening macro written excel file attachement in outlook2010

    Is saving the file a problem?

  7. #7
    Registered User
    Join Date
    11-13-2003
    Location
    India
    MS-Off Ver
    2007
    Posts
    65

    Re: Error while opening macro written excel file attachement in outlook2010

    No attachment opening itself an error, it should open in outlook

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error while opening macro written excel file attachement in outlook2010

    If you can't open the file straight from Outlook but it will open when you save it, why not just save it?

  9. #9
    Registered User
    Join Date
    11-13-2003
    Location
    India
    MS-Off Ver
    2007
    Posts
    65

    Re: Error while opening macro written excel file attachement in outlook2010

    saving is a second choise . Generally people opens attachement directly ...

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Well you need to look at the code causing the error and change it.

+ 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