+ Reply to Thread
Results 1 to 2 of 2

A single Calendar macro that can populate multiple cells?

  1. #1
    Registered User
    Join Date
    07-17-2008
    Location
    us
    Posts
    14

    A single Calendar macro that can populate multiple cells?

    Hello, Programmers!

    I created a UserForm calendar whose default behavior is to put the date you
    select in the active cell.

    I made a calendar icon, assigned it the OpenCalendar macro, made copies and positioned the icons approximately in cells C4, C6, C25 and C27.

    The code behind the UserForm is this:

    Please Login or Register  to view this content.
    I need each calendar instead to populate B4, B6, B25 and B27, respectively.

    So I changed ActiveCell.Value to Range("B4").Value, but off course that
    means all 4 icons now change only B4. I figured I could look at the cell the icon was in and move 1 to the left, but the icon has no address. Or does it?

    If someone could enlighten me on how to make each calendar running off the same macro put a date in its respective B cell, I would appreciate it greatly.

    I thank you for your time.

    Arlen

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    not tested but maybe
    Please Login or Register  to view this content.

+ 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