+ Reply to Thread
Results 1 to 5 of 5

Assigning Key

  1. #1
    Registered User
    Join Date
    10-04-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    16

    Assigning Key

    Disable Alt-f11 "view code" can be done via Onkey Method but if I want to assign a different key to activate it ... . when pressed "Alt - k"or any other key with alt, ctrl view code should appear in the only assigned workbook. Is it possible ???? To that Via Macro??

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

    Re: Assigning Key

    .
    https://www.rondebruin.nl/win/s4/win012.htm

    This macro will open the VBE (works in Excel 2007) :

    Please Login or Register  to view this content.
    Use the ONKEY method to disable the ALT / F11 (be sure to turn it back on when you close your workbook so other workbooks won't be affected).
    Then create another ONKEY method to activate the above macro which opens the VBE.

  3. #3
    Registered User
    Join Date
    10-04-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    16

    Re: Assigning Key

    Thank you Logit, I disable alt f11 and assigned different key by on onkey method to launch macro LAUNCHVBE but just got " Runtime error 1004: programmatic access to vb project is not trusted "" ???? and ""Runtime error 1004: Method of VBE of object _application Failed""???
    Last edited by Ronni1991; 12-16-2017 at 02:56 AM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

  5. #5
    Forum Contributor
    Join Date
    07-23-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    273

    Re: Assigning Key

    Try the below: Note that the "Dummy" and ViewVBA macros go in any general code module

    Please Login or Register  to view this content.

+ 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. Assigning a value to a row
    By elated in forum Excel General
    Replies: 2
    Last Post: 06-05-2013, 12:52 AM
  2. Photo assigning
    By gmcgrane in forum Excel General
    Replies: 4
    Last Post: 05-02-2012, 09:38 AM
  3. Excel 2007 : assigning into variable
    By lilahh in forum Excel General
    Replies: 7
    Last Post: 08-14-2011, 04:27 AM
  4. Assigning Values
    By bala06 in forum Excel General
    Replies: 3
    Last Post: 06-28-2011, 11:05 AM
  5. Checkboxes and assigning value to each
    By shilloh in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 05-31-2011, 07:58 AM
  6. Assigning Values
    By petuniaclark in forum Excel General
    Replies: 1
    Last Post: 04-17-2011, 09:20 PM
  7. Assigning a value
    By zloep in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2008, 03:17 PM
  8. Assigning a value to a character (?)
    By rahahmed in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-01-2006, 11:23 AM

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