+ Reply to Thread
Results 1 to 6 of 6

Excel view code - BeforeDoubleClick function

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Newport, Wales
    MS-Off Ver
    Office 2010
    Posts
    3

    Excel view code - BeforeDoubleClick function

    Hello everyone, thank you for taking a look.

    I have an excel sheet that has a list of companies, each company has a number of branches underneath. These branches are hidden from view, using the BeforeDoubleClick function I want excel to run a macro and then un-hide the specified rows if a company name cell is double clicked on.

    My VBA code under the spreadsheet works, but for some reason it will only work once and then default behaviour of double clicking on a cell to edit resumes.

    I have to close excel completely for the code to function again. Very confused.

    Here is an example of my code:

    Please Login or Register  to view this content.
    Any help with this would be greatly appreciated!

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel view code - BeforeDoubleClick function

    where's the code for Hide_All? does it disable events?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    09-23-2014
    Location
    Newport, Wales
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Excel view code - BeforeDoubleClick function

    Quote Originally Posted by Saarek View Post
    Hello everyone, thank you for taking a look.

    I have an excel sheet that has a list of companies, each company has a number of branches underneath. These branches are hidden from view, using the BeforeDoubleClick function I want excel to run a macro and then un-hide the specified rows if a company name cell is double clicked on.

    My VBA code under the spreadsheet works, but for some reason it will only work once and then default behaviour of double clicking on a cell to edit resumes.

    I have to close excel completely for the code to function again. Very confused.

    Here is an example of my code:

    Please Login or Register  to view this content.
    Any help with this would be greatly appreciated!
    Sir, I could kiss you! I spent hours playing around with the code when it was the Macro at fault the whole darn time.

    1000 times thank you!

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel view code - BeforeDoubleClick function

    it's ma'am actually but you're welcome ;-)

  5. #5
    Registered User
    Join Date
    09-23-2014
    Location
    Newport, Wales
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Excel view code - BeforeDoubleClick function

    Whoops, my fault for looking at the picture and making assumptions. Thanks once again

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel view code - BeforeDoubleClick function

    it's ok I've gotten used to it :-)

+ 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. what vba code will allow me to select a specific sheet as the default excel view?
    By ramrez2009 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2014, 10:41 AM
  2. how to enable vb view code in excel sheet, please help!!
    By MTHASIM in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-28-2011, 07:23 PM
  3. View Report (With Excel) - vba code?
    By adgjqetuo in forum Access Programming / VBA / Macros
    Replies: 6
    Last Post: 11-20-2009, 08:49 AM
  4. concatif function breaks beforedoubleclick function just by being there?
    By turningitred in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2009, 08:56 PM
  5. [SOLVED] How to view the code for excel built-in functions?
    By serdar in forum Excel General
    Replies: 1
    Last Post: 12-19-2005, 05:55 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