+ Reply to Thread
Results 1 to 8 of 8

Export Outlook tasks to Excel

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Export Outlook tasks to Excel

    Trying to export Tasks to Excel. My code works well, except the code for my last row: It works "most" times, but "some" times it gives me a "Run time error:'1004': Method 'Range' of object '_Global' failed". I've searched and can't figure out what the problem is, so am appealing for help. My code is below and any help is greatly appreciated.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Export Outlook tasks to Excel

    You need to fully qualify the rows.count
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Export Outlook tasks to Excel

    Thanks David. That appears to be what was needed. Testing now, and I'll get back if I spot any other issues.

    Thanks,
    John

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Export Outlook tasks to Excel

    I've updated my code with David's suggestion. Now I have another "Sometimes" issue. Full code is below. I've installed it for 4 users (me included), and for 3 of us it works flawlessly. For one user, I'm getting an Error Code 13 on this line:
    Please Login or Register  to view this content.
    I can't find any difference in the setup. The only difference I see in him is that he's been using tasks in Outlook for a long time (years). We just recently upgraded to Outlook 2010, and most of our team is just staring to use tasks. I don't know if that difference could make the difference, but don't know what else it could be. Any help is appreciated.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Export Outlook tasks to Excel

    I'm going to take a wild guess and suggest that the Outlook database is corrupt. So, you need to add some error checking.

    (Not tested)

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Export Outlook tasks to Excel

    TinBendr,
    unfortunately I'm not going to be able to test this until late this afternoon, as the user in question is my boss, who's taking a 1/2 day off this morning. I'll try to get with him this afternoon and try it out. Thanks for this.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Export Outlook tasks to Excel

    Update, in testing, I get a "Next without For" error. I've put the SKIP: down at the bottom, under my messagebox, like so:
    Please Login or Register  to view this content.
    How do I overcome the "For" error?

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Export Outlook tasks to Excel

    Got it working by changing my SKIP to:
    Please Login or Register  to view this content.
    Not sure if that's good coding, but it seems to work. Any help is appreciated.

+ 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. [SOLVED] link excel row to outlook tasks
    By SYaroslav in forum Excel General
    Replies: 2
    Last Post: 01-18-2012, 03:23 PM
  2. Excel to set tasks in outlook
    By carloskev in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2011, 07:00 AM
  3. Outlook Tasks - Adding tasks from a worksheet added today or after
    By dpotta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2010, 07:15 AM
  4. Linking Excel with Outlook tasks
    By Fish11 in forum Excel General
    Replies: 0
    Last Post: 06-13-2005, 09:05 PM
  5. [SOLVED] I am trying to export MS Outlook tasks into excel
    By Excel programming in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2005, 06:10 AM

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