+ Reply to Thread
Results 1 to 7 of 7

Window resize doesn't trigger a line of code

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Window resize doesn't trigger a line of code

    Hello everybody
    I have this code that I expect o unhide the formula bar when minmize the application
    Please Login or Register  to view this content.
    It's working when minimizing the workbook not the application
    I tried to replace wn with application but it doesn't work

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Window resize doesn't trigger a line of code

    How do you know it's not working when you minimize the application? surely nothing is visible when the application is minimized??
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Window resize doesn't trigger a line of code

    I want it to be hidden after restoring it
    It's working when minimizing the workbook and the formula bar is hidden till i do unhide to view it again

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Window resize doesn't trigger a line of code

    I know english is probably not your native language but your request is very confusing as your code does not match your description.

    So, the application does not raise any events when resizing. Only changes in workbook windows are triggered. BUT the event does not happen if the resize is a result of the application resizing. This means if the workbook is maximized within the application and the application is resized no event happens.

    this code changes the formula bar display based on window state, change false/true as required.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Window resize doesn't trigger a line of code

    Thanks Mr. Andy Pope for trying to offer help.
    I really thought that it's possible to hide the formula bar if the user click on the minimize button of the application !!

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Window resize doesn't trigger a line of code

    Perhaps you mean maximize (fill the screen) rather than minimize (reduce to icon in start bar.

    If you minimize the application you can not see the formula bar so you don't need to do anything.

    Full screen mode will hide the formula bar.

  7. #7
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Window resize doesn't trigger a line of code

    For Mac Excel, there is a known bug that the Window Resize event doesn't fire.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Adjust a code from cell range trigger to button trigger
    By ld2x07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2014, 10:02 AM
  2. [SOLVED] VBA code creating E-mail, display it and close window after - Doesn't work
    By Hemandk84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2013, 09:43 AM
  3. [SOLVED] Quick question-Why doesn't this code work? (Resize keeps original cell ref?)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2013, 03:08 AM
  4. Click code for ActiveX control doesn't run in second Window
    By owenf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2013, 10:19 PM
  5. [SOLVED] unable to get the excel app event trigger for for window resize
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2005, 11:10 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