+ Reply to Thread
Results 1 to 6 of 6

Error in VBA code linking Excel with Outlook Calendar

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Texarkana, TX
    MS-Off Ver
    Excel 2007
    Posts
    23

    Error in VBA code linking Excel with Outlook Calendar

    http://www.excelforum.com/excel-prog...-calendar.html (previous thread)

    HELP! The previous thread solution has worked fabulously for our company for the last year, but now it is stalling, and receiving a RUN TIME ERROR 13, Type mismatch. It gives me the error when it starts to reference the second column in the code (col. M). I don't know why? Where to begin looking for what we changed ... (the first column's dates are all 2015 which creates a 2016 apptmt for me, col. M's first date is a 2014 date -- not that it should matter but just in case)

    The line highlighted in the debug is the line -- UseDate = DateAdd("yyyy", 1, cel.Value) in the following section:

    Please Login or Register  to view this content.
    Qualified Vendors (Client Specific) w drug & orient - for excelforum.xls
    please note the attach has been altered to accommodate forum limitations, but the changes should not affect the VBA code needed to solve this issue.
    Last edited by ShanonPBW; 11-20-2015 at 12:51 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Error in VBA code linking Excel with Outlook Calendar

    Hi ShanonPBW

    Please wrap your Code in Code Tags as is required by Forum Rule 3.

    As I requested, you've started a New Thread for this issue. What you've not done is attach a copy of the offending Workbook. We can't troubleshoot the issue without that.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Error in VBA code linking Excel with Outlook Calendar

    Hi Shanon

    "NEED" (Cell M24) is not a Date thus this will fail...
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-13-2014
    Location
    Texarkana, TX
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Error in VBA code linking Excel with Outlook Calendar

    Thank you.

  5. #5
    Registered User
    Join Date
    01-13-2014
    Location
    Texarkana, TX
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Error in VBA code linking Excel with Outlook Calendar

    thank you - makes complete sense now that you pointed it out.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Error in VBA code linking Excel with Outlook Calendar

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linking dates in a work book to "Outlook Calendar"?
    By MrBigStyx in forum Excel General
    Replies: 1
    Last Post: 08-19-2015, 02:17 PM
  2. Linking an Excel Cell to an Outlook Calendar
    By Reganhali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2015, 02:12 PM
  3. Outlook Calendar Populater... Help with mismatch error
    By joel.underwood in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2014, 02:07 PM
  4. Excel Macro - Linking dates from Excel to a Shared Outlook Calendar
    By cg7131 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2011, 11:08 AM
  5. Linking to Outlook calendar appointment
    By faulkma in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2009, 09:33 AM
  6. [SOLVED] import calendar items from excel into outlook calendar
    By jsewaiseh in forum Excel General
    Replies: 0
    Last Post: 09-02-2005, 11:05 AM
  7. [SOLVED] Capabilities of linking excel cells with outlook calendar
    By Judy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2005, 02:05 PM

Tags for this Thread

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