+ Reply to Thread
Results 1 to 5 of 5

Navigating to a certain cell using column and row values

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    uk
    MS-Off Ver
    13
    Posts
    16

    Navigating to a certain cell using column and row values

    Basically for Column A,B,C and rows 1,2,3.... I have a drop down list for column and row values to choose from. I have a button beside the drop down list so if I choose B and 2 on both drop downs and click the button, I will get navigated to cell B2.

    Can this be done via a button macro? Thanks in advance!

    I've currently got this code for each of the drop down, but everytime i click on my selection it resets back to column 2/row3.

    Please Login or Register  to view this content.
    Last edited by leepox; 03-21-2017 at 10:30 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Navigating to a certain cell using column and row values

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    05-05-2016
    Location
    uk
    MS-Off Ver
    13
    Posts
    16

    Re: Navigating to a certain cell using column and row values

    Thanks a bunch! This is exactly how I wanted it to operate. Funnily enough the freeze view stopped me from navigating to the cells that are adjacent to the freeze view so had to insert an empty column and row.

    One last Q. How do I link this action to a button instead of Worksheet_Change? As now everytime I type in the sheet I get moved to the selection. I've attached it to a Button_click but now it returns with the error "Argument not optional". I created a new macro and this sits under a module.

    Please Login or Register  to view this content.
    Last edited by leepox; 03-22-2017 at 05:46 AM.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Navigating to a certain cell using column and row values

    My bad - this will only work when you change B1 or B2:

    Please Login or Register  to view this content.
    If you want to use the code as a macro, just take out the Target part:

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 03-22-2017 at 08:42 AM.

  5. #5
    Registered User
    Join Date
    05-05-2016
    Location
    uk
    MS-Off Ver
    13
    Posts
    16

    Re: Navigating to a certain cell using column and row values

    D'oh. Thanks a lot! Working perfectly now!

+ 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. Transpose values in column to rows, and split cell values to extend column
    By SAMMM in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-03-2015, 12:52 AM
  2. Not inserting cell references when navigating forms.
    By AnotherDaveC in forum Excel General
    Replies: 2
    Last Post: 04-11-2013, 10:32 AM
  3. [SOLVED] Macro to loop through cell values in a column and format multiple cell values
    By Roop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2012, 05:39 PM
  4. navigating while writing cell formulas - any way to modify default functionality?
    By riwiseuse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2011, 08:32 AM
  5. cell data not validated if navigating cell to cell with mouse
    By LoveThatMouse in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2006, 04:10 PM
  6. Navigating from cell to cell with arrow keys
    By DanielPolak in forum Excel General
    Replies: 1
    Last Post: 02-13-2006, 06:40 PM
  7. pasting and navigating down a long column?
    By Boatman in forum Excel General
    Replies: 3
    Last Post: 11-28-2005, 05:20 PM

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