+ Reply to Thread
Results 1 to 4 of 4

Remain screen when a macro button use

  1. #1
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,736

    Remain screen when a macro button use

    Hello,

    My macro button for border are in Sheet1. But when I click the button it goes automatically in Sheet2. Is there a way my screen will stay in Sheet1 when I click the button?

    Please Login or Register  to view this content.
    Thank you.

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Remain screen when a macro button use

    Hello RJ,

    Add either one of the following just above End Sub:-

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    I hope that this helps.

    Cheerio,
    vcoolio.

  3. #3
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,736

    Re: Remain screen when a macro button use

    Please Login or Register  to view this content.
    Did not work. It said "compile error"

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Remain screen when a macro button use

    There's an unrequired dot(.) in the Goto line that I've just noticed.

    Please Login or Register  to view this content.
    Just remove the dot in front of Sheet1.

    Cheerio,
    vcoolio.
    Last edited by vcoolio; 10-22-2021 at 07:28 PM.

+ 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. Toggle Button To Remain On/Off
    By siamadu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-05-2023, 11:58 AM
  2. vba macro for print button that brings up print screen selection window
    By kellie1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2020, 12:52 PM
  3. [SOLVED] Macro to Click 'X' Close Button Dependent on Screen Resolution
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2015, 04:43 AM
  4. Button to always remain on top
    By sandbach in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-10-2010, 08:35 AM
  5. Floating Selection - Cells remain on screen
    By ugg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-26-2007, 01:57 AM
  6. [SOLVED] NEED A PART OF THE TABLE TO REMAIN IN THE SCREEN, HOW??
    By san in forum Excel General
    Replies: 2
    Last Post: 09-02-2005, 01:05 PM
  7. [SOLVED] i can not get full screen to remain off
    By BabyBlueAXiD in forum Excel General
    Replies: 1
    Last Post: 08-26-2005, 11:05 AM

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