+ Reply to Thread
Results 1 to 8 of 8

Run Macro after Unfreeze panes

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    Prague, Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    4

    Run Macro after Unfreeze panes

    I need to run a certain macro after the Unfreeze panes.
    Should I use any event, or how can I do it?
    Can someone help?
    Thanks
    Bells

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Run Macro after Unfreeze panes

    There is no event generated by freezing or unfreezing panes.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-29-2013
    Location
    Prague, Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Run Macro after Unfreeze panes

    OK. Is there any solution?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Run Macro after Unfreeze panes

    You could run the code for any other event -- a manual change of a cell, the calculate event, the sheet activate or deactivate event, whatever.

    What are you trying to do?

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Run Macro after Unfreeze panes

    You can check if the panes are frozen or not. So if you set a timer to run a macro every 20 seconds. And that Macro quits if the panes are not frozen. You have a Solution.

    Please Login or Register  to view this content.

    Tmer programme:-

    When the workbook first opens, execute this code:

    Please Login or Register  to view this content.
    Then just have a macro in the workbook called "EventMacro" that will repeat it.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 06-29-2013 at 07:40 PM.

  6. #6
    Registered User
    Join Date
    06-29-2013
    Location
    Prague, Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Run Macro after Unfreeze panes

    What I would like to do is to make a kind of protection of the sheet. Once someone will try to unfreeze panes, macro will delete some cells and the workbook will loose its unique functions and it will be not possible to use it again. As far as I know the protection of the sheet by password is very weak and the password break is very simple.

  7. #7
    Registered User
    Join Date
    06-29-2013
    Location
    Prague, Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Run Macro after Unfreeze panes

    Thank you for your suggestion, however, after launch your xlsm file the runtime error is reported (Runtime error 440) and the row alertTime = Now + TimeValue("00:00:20") is highlighted in debugger. FYI: I am working in MS Excel 2011 for Mac.

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Run Macro after Unfreeze panes

    I'm afraid it works fine on my pc.

    I have no access to a mac.

    So you will need to debug this yourself.

    google apple mac vba excel timer.

+ 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