+ Reply to Thread
Results 1 to 2 of 2

Freeze panes and worksheet_beforedoubleclick - Annoying automatic scrolling

  1. #1
    Forum Contributor
    Join Date
    10-11-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    136

    Freeze panes and worksheet_beforedoubleclick - Annoying automatic scrolling

    Good morning all!

    I am working on a daily planning sheet where a doubleclick in a cell pulls up a listbox of tasks to be completed for that corresponding day. Items can be selected from the list and copied into the active cell.
    I've frozen the panes in C6, and now whenever I double click a cell, it is automatically moved to the top left position (where C6 would be), and all cells between there and the cursor are highlighted.
    Has anyone experienced this/heard of it happening?

    There's an example workbook attached which might make the problem more understandable.

    Michael
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-11-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Freeze panes and worksheet_beforedoubleclick - Annoying automatic scrolling

    Looks like I found the problem:

    In the worksheet_beforedoubleclick event there was a line to make a listbox visible.
    Removing that stopped everything scrolling all over the place, but I had a new problem that listbox.visible = False wold not work. The property would be changed to false, but the listbox would still be visible.
    The only way I could find to work around that was to set the visibility at the start of the listbox_dblClick event as true, then set it to false again at the end.

    Result: No unwanted scrolling/cell selection, and listbox comes and goes when it should.

    I'd still be interested to know if anyone else has experienced anything similar/found different solutions though!

    EDIT:Sorry, not solved yet.. obviously now I can't see the listbox at all because I can't doubleclick it to make it visible...
    EDIT 2: Last Edit invalid - Having listbox.activate in the worksheet_beforedoubleclick event makes it visible too...
    Last edited by rodgersmg; 09-30-2015 at 06:38 AM.

+ 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. macro w/ Freeze panes keeps shifting where panes freeze on worksheet
    By sschwant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2015, 02:30 AM
  2. Freeze Panes - Can I freeze a specific set of cells?
    By Rosco88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 09:17 AM
  3. Scrolling and freeze panes
    By ElTerrible in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2008, 05:35 PM
  4. Replies: 3
    Last Post: 11-27-2006, 05:24 PM
  5. Excel 2003 freeze panes won't freeze top row only
    By macbone2002 in forum Excel General
    Replies: 1
    Last Post: 05-31-2006, 11:10 AM
  6. Freeze Panes-When freeze panes is employed it leave a black line
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2006, 01:40 AM
  7. [SOLVED] Freeze Panes-can you freeze more than one column
    By rexmann in forum Excel General
    Replies: 4
    Last Post: 06-09-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