+ Reply to Thread
Results 1 to 14 of 14

Create multiple to do list

  1. #1
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Create multiple to do list

    I have data in XL that containing (more than this but important for now) date, name and status (active/non active that is changable).

    I would like to create To do list in outlook (or meeting request, appointment...) or anything else that will import all dates and warn me month before expired.
    (that will be enough but if there is option to warn me each day or every monday within month if it's non-active even better).

    I have hundreds of inputs and they are spread over whole year.

    What's best and/or easiest way to do this so I don't need to write in one by one?

    I don't know what kind of example to create... if you need some let me know...
    Last edited by zbor; 09-03-2009 at 02:58 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create multiple to do list

    I've posted a few times re: importing tasks etc into OL and I'm pretty sure Leith has also - if you do a Search with either of myself / Leith as member and Outlook as topic you should find a few threads that may help... worth also checking out the link re: Outlook VBA in my sig.

    Being the capable chap you are see how far you can get under your own steam and then post back perhaps with a sample of where you've got to - if needed we can help from there...

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    Ty DQ, I can add them manualy since I'm not familiar with VBA (mea culpa, mea culpa, mea massima culpa)

    but I need to update them from a time to time and it would be lot easier to import from XL since I have updated there.

    Here is example of data and screenshot how I would like it to look.
    If someone have time and will can make VBA.
    If it's too heavy can ignore it (I don't have a clue).

    Input data: example.xls

    Screen shot: tasks.jpg

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create multiple to do list

    What happens when the Task has been completed ? ie Date3 is "Completed"

    Are you looking to re-run this routine over-and-over and if so what happens to pre-existing Tasks ?

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create multiple to do list

    Still not clear to me what is meant to happen when the date fields are not dates ... in theory this will cause problems so in the below for the sake of demo I have ignored... as is this would take up too much of my time and I think you should enough to work from below....

    Please Login or Register  to view this content.
    Note line in red - this is to limit the amount of tasks being created initially -- else you OL is liable to overflow.. ie only run full blooded version once you know it's doing exactly what you want.

    Re: formatting Body etc... you can use HTML format if you want (ie use HTML mark-up) and you can also make use of HEX codes in addition to standard vblf etc... you will find plenty of examples on line.

    The above is designed solely for use with OL2007 given use of Categories.
    Last edited by DonkeyOte; 09-02-2009 at 11:28 AM. Reason: typo - first strBody entry corrected

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    Quote Originally Posted by DonkeyOte View Post
    What happens when the Task has been completed ? ie Date3 is "Completed"

    Are you looking to re-run this routine over-and-over and if so what happens to pre-existing Tasks ?
    Going to some bussines trip so I don't know will I manage to test it before friday.

    Script not planned to run all the time.

    Most of the time, once I upload all tasks, they are rarely changing - let say 20-30 per year so I can handle them manually.

    But when I run script next time it can write over existing data - data in excel should always be correct.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    I get this error:

    untitled.JPG

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create multiple to do list

    The code utilises early binding and thus requires reference to OL Object Library (VBE - Tools - References: Microsoft Outlook 12.0 Object Library)
    I had presumed you would be aware of that requirement.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    Nope sorry.... My Macro is so poor that I don't know even what's macrobiotic

    Now is OK, only two more things:

    Regarding to your upper question, now I get duplicated tasks.
    Can previous be overwritten?

    Also, I get 6 values in (not all).
    is that connected to

    Please Login or Register  to view this content.
    part of code or somewhere else?

    I run it 4 times so I have now 24 values (6 values duplicated 4 times).

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create multiple to do list

    zbor, as I stated earlier...

    Quote Originally Posted by DO
    ...as is this would take up too much of my time and I think you should enough to work from below....
    I think you need to attempt to progress this with some effort on your own part - what you have presently is fairly extensive piece of work ...

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    Yes, sorry.
    I'm really appriciated.

    I came to this:

    deleting is not problem...
    And I figured out why can't get all values:

    1. extend to 150
    and
    2. I must have populated all dates (not empty cells, text etc.)

    I did that, putting some dummy data that I can adjust latter.

    I have last question (I hope).

    How to add in subject G column (like now ) plus B and C?

    I think it's here: .Subject = rngCell.Offset(, 6).Value

    But not sure....

    Can be separated just with spaces, doesn't care... Just because of lot AB-????/???? cells it became unreadable.

    Thanks in advance.

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    GOT IT!!!!!!!!!!

    Method of tries and mistakes is still best method

    Thank you DQ... Didn't get much about macros - at least I'm able to adopt it

  13. #13
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Create multiple to do list

    Oh, yes, just for the info: things with labels didn't work. All categories are red categories and every status is Waiting for someone else.

    But that's not problem. Every time when I get notification I'll update it and time by time I'll get correct list.

    Thanks again.

  14. #14
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create multiple to do list

    Quote Originally Posted by zbor
    ...just for the info: things with labels didn't work. All categories are red categories and every status is Waiting for someone else.
    Regards Categories:

    The Categories you apply will depend on what they're called in your OL ... for ex. I don't use Categories at all and so by default they are "Green Category", "Red Category" etc... if you have renamed your categories then you will most likely need to utilise those edited names.

    HOWEVER - note point below...

    Regards Status':

    The fact that all are showing as "Waiting" would imply that the (upper case) contents of "E" are not matching any of: "IN PROGRESS", "COMPLETED", "NOT STARTED" ... you should check the cell contents against the Select Case statement options and revise accordingly
    ie Red is applied to anything other than the above strings being in Col E
    (note: Upper Case conversion - VBA unlike Native XL is by default Case-Sensitive - can be altered (add Option Compare Text at Head of Module) but enforcing common-case when required is sometimes a little safer IMO)

    Quote Originally Posted by zbor
    I must have populated all dates (not empty cells, text etc.)
    Agreed, this was a point I made early on in the piece I think.
    Last edited by DonkeyOte; 09-04-2009 at 03:05 AM.

+ 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