Consulting

Results 1 to 2 of 2

Thread: Create outlook appointementes only on "check" rows

  1. #1
    VBAX Regular
    Joined
    Dec 2017
    Posts
    11
    Location

    Create outlook appointementes only on "check" rows

    Hello,

    I would like to create a workbook to manage my appointements on Outlook.
    i´ve already managed to use a code to do most of the work.
    Now i´d like to use the macro only on the rows that doesnt have an "x" on the Check column.

    Na extra would be to transport the appointements to the other sheet with the week agenda. is it possible?

    Thanks!
    Outlook Appointemens.xlsm

  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    try
        i = 3
        Do Until Trim(Cells(i, 1).Value) = ""
            If Cells(i, 10).Value = "x" Then
                Set olAppt = CalFolder.Items.Add(olAppointmentItem)
                With olAppt
                'Define calendar item properties
                    .Start = Cells(i, 5) + Cells(i, 6)     '+ TimeValue("9:00:00")
                    .End = Cells(i, 7) + Cells(i, 8)       '+TimeValue("10:00:00")
                    .Subject = Cells(i, 1)
                    .Location = Cells(i, 2)
                    .Body = Cells(i, 3)
                    .BusyStatus = olBusy
                    .ReminderMinutesBeforeStart = Cells(i, 9)
                    .ReminderSet = True
                    .Categories = Cells(i, 4)
                    .Save
            ' For meetings or Group Calendars
                 ' .Send
                End With
            End If
            i = i + 1
        Loop
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •