+ Reply to Thread
Results 1 to 7 of 7

Be All End All Calendar Tool (v2)

  1. #1
    Registered User
    Join Date
    01-15-2016
    Location
    New England
    MS-Off Ver
    2007
    Posts
    29

    Be All End All Calendar Tool (v2)

    I posted this code a while back, I don't think anyone saw it. I made a slight change since then.



    Anyone who as used the Datepicker add-in knows it is temperamental and doesn't work well when the code is being accessed by multiple computers.

    This Calendar tool is all code, no forms needed. no ActiveX controls. Should work on all excel versions.

    The appearance is totally custimizable as well.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Be All End All Calendar Tool (v2)

    I get a runtime error stating Programmatic access to Visual Basic Project is not trusted on this line
    Please Login or Register  to view this content.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    01-15-2016
    Location
    New England
    MS-Off Ver
    2007
    Posts
    29

    Re: Be All End All Calendar Tool (v2)

    This program creates and deletes modules. Your compiler see that and errors out.


    Go to Macro trust settings and enable "Trust Access to VBA project object model"

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Be All End All Calendar Tool (v2)

    .
    My system : Win 10 / 64 bits.

    I receive the following error after closing the date picker (see image, line in blue). Also note that after closing it creates a new Userform and Module (for each time the macro is run).

    ???

    DatePik.jpg

    I have already enabled : "Trust Access to VBA project object model"

  5. #5
    Registered User
    Join Date
    01-15-2016
    Location
    New England
    MS-Off Ver
    2007
    Posts
    29

    Re: Be All End All Calendar Tool (v2)

    The calendar opens and closes 3 times for the demo. Then a form opens and you can run the calendar from the form button.



    The Demo Code is in module1. Look in there and it will explain how to use it.


    The reason your getting an error is that you have multiple calendar forms created, with duplicate declarations of global variables.

    This happened from the code being stop with the debugging before it had a chance to delete the calendar form.




    Delete both calender43210.... forms and module43210... The code will work again after that.

  6. #6
    Registered User
    Join Date
    01-15-2016
    Location
    New England
    MS-Off Ver
    2007
    Posts
    29

    Re: Be All End All Calendar Tool (v2)

    Before you do that try running this sub...

    This is what the class uses to remove any conflicting forms/modules. It looks for " 'Delete me 989898" at the top of the module.

    I have a suspicion that your Excel is not deleting these files.


    Please Login or Register  to view this content.
    Last edited by tonyd5; 04-20-2018 at 07:23 PM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,458

    Re: Be All End All Calendar Tool (v2)

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. End All Be All DatePicker / Calendar tool
    By tonyd5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2017, 04:58 PM
  2. Replies: 3
    Last Post: 11-05-2016, 09:08 PM
  3. Google Calendar bulk import tool with recurring events.
    By Hindrik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2016, 09:12 AM
  4. calendar tool missing
    By kollex-888 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2015, 02:02 AM
  5. Replies: 0
    Last Post: 03-27-2008, 04:36 PM
  6. Tool/template to track available time on calendar
    By Rubygirl in forum Excel General
    Replies: 2
    Last Post: 05-08-2006, 07:30 PM
  7. I am missing view tool bar from tool menu.
    By excel in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-04-2005, 03:05 PM

Tags for this Thread

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