+ Reply to Thread
Results 1 to 10 of 10

Calendar Macro

Hybrid View

  1. #1
    Registered User
    Join Date
    05-23-2007
    Posts
    41
    I tried the code and it doesn't seem to work. Please check attached file.

    I would also like to activate when "B5" is active along with "A5".

    Thanks for all your help!!!
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641
    Hi again,

    You entered the code in a standard VBA module - you must enter it in the VBA module for the WORKSHEET. Right-click on the worksheet tab & select "View Code" - this will display the VBA module for the worksheet.

    To extend the "activation range" use:

    Const strCalendarCell   As String = "A5:B5"
    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    05-23-2007
    Posts
    41
    It isn't working... Attached is actual file. I need it to activate in cell C7 & G7.

    I get an error no matter what cell I click on. Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It would work if you had a frmCalendar!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    In attached file i added a form and a calendar control in the form (to select a date use double click).

    I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

+ 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