+ Reply to Thread
Results 1 to 3 of 3

VBA worked in 2007 Excel, not in 2010

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    New York
    MS-Off Ver
    excel 2010
    Posts
    16

    VBA worked in 2007 Excel, not in 2010

    Hi guys, I have this code from an excel workbook we use at work for emailing important contents of a spreadsheet directly from Excel through Outlook. The code was working great in Excel 2007 with Outlook 2007....but since the office updated to both 2010 versions, the code keeps coming up with errors. Any one have any ideas on a fix, or how to rewrite it so it will work with 2010?
    The bug seems to be in the "tempfile=environ$......etc..or at least that what excel keep flagging as the error.

    HTML Code: 

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA worked in 2007 Excel, not in 2010

    Hi,

    Can't be more specific but I've just tried your code with Excel 2010 and Outlook 2007 (I don't have OL 2010) and it works. Which perhaps suggests that the problem area is Outlook 2010

    I came across the following http://gillwald.co.uk/home/archives/30 which might offer some clues, and I noticed googling around for temp environ outlook 2010 that there were other similar links.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-20-2012
    Location
    New York
    MS-Off Ver
    excel 2010
    Posts
    16

    Re: VBA worked in 2007 Excel, not in 2010

    Thanks for your reply, I figured it out, the problem was actual a missing object library refrence.

    thanks again for you help

+ 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