+ Reply to Thread
Results 1 to 12 of 12

VBA for Ctrl F1

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    VBA for Ctrl F1

    Ctrl F1 , hide ribbons in Excel
    How can I write a VBA to do the same at File Opening ?

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: VBA for Ctrl F1

    How about
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VBA for Ctrl F1

    Ok, so were I should put this, so when I Open the file, Ribbon will go away ?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: VBA for Ctrl F1

    Put it in the Workbook open event.

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VBA for Ctrl F1

    This looks like is Crtl Shitft F1
    Please Login or Register  to view this content.
    Can I have Crtl F1 only ?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: VBA for Ctrl F1

    How about
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VBA for Ctrl F1

    It say Object variable with block variable not set

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: VBA for Ctrl F1

    What is your entire code?

  9. #9
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VBA for Ctrl F1

    I like the answer #5 but could you please create a button
    - if I press once I get ...false (post #5 code)
    - if i press one more time I get it back ....true

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: VBA for Ctrl F1

    You asked for something that would work when you opened the file, not a toggle button.

  11. #11
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VBA for Ctrl F1

    Yes, but then I realized that with Ctrl Shift F1 , I can not even save the file, all the ribbons are gone !

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: VBA for Ctrl F1

    You don't need any more code, the post#5 is all you need.

+ 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. Replies: 4
    Last Post: 04-27-2021, 11:49 AM
  2. Disable Ctrl+A, Ctrl+C and Ctrl+V in Excel
    By wedzmer in forum Excel General
    Replies: 5
    Last Post: 05-10-2018, 03:59 AM
  3. [SOLVED] CTRL+C & CTRL+V copy single but pasting tab delimited spaced
    By Jack7774 in forum Excel General
    Replies: 4
    Last Post: 03-20-2015, 08:23 AM
  4. Disable cut,copy,paste(including ctrl x, ctrl c n ctrl v)
    By Ramboexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2014, 01:00 AM
  5. [SOLVED] Move Ctrl + F6 or make a macro that mimicks what Ctrl + F6 does
    By Jacc in forum Word Formatting & General
    Replies: 4
    Last Post: 08-18-2014, 03:28 AM
  6. Help needed : Unable to use CTRL+C or CTRL+D to copy formula
    By Elangovan89 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2014, 10:20 AM
  7. Ctrl+pg up and Ctrl+pg Down Dont work, New & unprotected documents
    By desert_dweller5 in forum Excel General
    Replies: 2
    Last Post: 09-10-2012, 07:44 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