+ Reply to Thread
Results 1 to 2 of 2

VBA double click in a cell to navigate to another tab and auto-filter

  1. #1
    Registered User
    Join Date
    03-30-2021
    Location
    Sofia
    MS-Off Ver
    365 Apps for enterprise
    Posts
    1

    VBA double click in a cell to navigate to another tab and auto-filter

    Hi All,

    I'm totally new to VBA scrips and macros and was wondering if you could help me out with a solution for the below:

    I have a spreadsheet with several tabs/sheets. In one of the tabs, I have a column which I would like to make it interactive - i.e. if the user double-clicks it, to navigate to another tab and apply a filter to a column.

    Attaching the spreadsheet.

    The column where the user should double click is in Tab "Detailed(employee) View" - column L(work Pattern) and the target sheet is "Work Pattern" and auto-apply filter against column A ( row 4 ).

    Version is Microsoft 365 MSO (16.0.13801.20240) 32-bit

    Thanks in advance!

    Regards,
    Aleks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-28-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    11

    Re: VBA double click in a cell to navigate to another tab and auto-filter

    Two steps to this
    1 - put the data in "Work Pattern" into a table, this makes it easier to refer to in the vba (to do this, unmerge cell m3:m4 and select the range "A4:M8" and click the "Table" button in the "Insert" tab of the ribbon, make sure "My table has headers" is checked. Once done, click anywhere in the table, goto the "Table Design" tab in the ribbon and name the table "WorkPattern").
    2 - open VBA editor, in the project explorer double click on "Sheet4 ("Detailed (employee view)", in the window paste the following code - each line in the code has a comment telling you what it does.

    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. [SOLVED] Click a cell to navigate to another sheet
    By adray13 in forum Excel General
    Replies: 3
    Last Post: 12-06-2018, 02:22 PM
  2. Filter cell color once I double click on cell
    By sterio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2017, 12:53 PM
  3. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  4. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  5. Macro to filter on double click on cell
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2013, 09:19 AM
  6. Create macro upon double click cell display filter in new sheet
    By kamalhilmi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2012, 07:40 AM
  7. Auto Expand Cell - Double Click
    By curtjer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2012, 01:19 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