+ Reply to Thread
Results 1 to 4 of 4

Map Schedule Data onto Calendar View Generated by Macro

  1. #1
    Registered User
    Join Date
    06-08-2016
    Location
    internet
    MS-Off Ver
    2078
    Posts
    9

    Map Schedule Data onto Calendar View Generated by Macro

    I have a workbook containing a schedule in a linear format arranged with columns corresponding to Outlook fields to allow import into an Outlook calendar.

    Because of various institutional inanities, there still needs to be a calendar view of the schedule in excel format for distribution to departments not sharing outlook access.

    I lifted this CalendarMaker macro from the internet:
    Please Login or Register  to view this content.
    I need to map cells in the "Subject" field from the linear schedule to the corresponding day on the calendar view. Weekdays have two shifts and weekends have only one shift, so the rows of my schedule will not relate to dates in a static manner from month to month. I am happy to concatenate both shifts in a single calendar cell, but I just can't figure out how to get started on this. Any help? Thanks in advance.

  2. #2
    Registered User
    Join Date
    06-08-2016
    Location
    internet
    MS-Off Ver
    2078
    Posts
    9

    Re: Map Schedule Data onto Calendar View Generated by Macro

    Please Login or Register  to view this content.
    I think this is almost what I want, but I keep getting an error: '1004': Unable to get the VLookup property of the WorksheetFunction class. Google offers lots of suggestions for debugging but none seem to work or I just don't understand them. Any help would be appreciated. Thanks.

    For clarity: the range in the For Each y statement contains cells with dates. The active sheet is the Calendar View with the range in the For Each d statement containing all the cells in the calendar.
    What I need is that if the value of d is equal to the day of the date in y, then it should lookup a value y in the specified range and return the value from the 5th column as the value for d.
    Last edited by howaboutno; 09-20-2016 at 02:23 PM.

  3. #3
    Registered User
    Join Date
    06-08-2016
    Location
    internet
    MS-Off Ver
    2078
    Posts
    9

    Re: Map Schedule Data onto Calendar View Generated by Macro

    Please Login or Register  to view this content.
    This code works to place that text in the cell under the 1st day of the month but does not continue to loop through the remaining days. How to fix this loop?

  4. #4
    Registered User
    Join Date
    06-08-2016
    Location
    internet
    MS-Off Ver
    2078
    Posts
    9

    Re: Map Schedule Data onto Calendar View Generated by Macro

    Please Login or Register  to view this content.
    Closer. It now loops through the data and places the values in the correct cells. Now I just need to fix two things:
    1. The calendar macro only generates one row for input per day. I would like it to make 4 rows per day. Any suggestions?
    2. The OnCallforDate macro will place the last value for the date in the cell, is it possible in VBA to do an IF a AND b THEN ... ELSE IF a AND c THEN ...?

+ 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. Propagate calendar/schedule using data
    By klong in forum Excel General
    Replies: 5
    Last Post: 03-17-2015, 07:56 PM
  2. Macro to Count Staff Attendance from a Monthly Schedule Calendar
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2013, 02:04 PM
  3. Replies: 2
    Last Post: 04-13-2012, 01:16 PM
  4. Schedule report - to be generated for each individuals
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-14-2008, 10:20 AM
  5. Replies: 0
    Last Post: 03-27-2008, 04:36 PM
  6. [SOLVED] How to create a calendar view from data in Excel?
    By MLM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-07-2006, 10:10 AM
  7. How can I create a calendar from excel data (schedule)?
    By Shelly K in forum Excel General
    Replies: 0
    Last Post: 01-11-2006, 05:00 PM

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