Excel Cursor point move to a certain cell

Maggie28

New Member
Joined
Nov 26, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi everyone!
I'm working on a file that has a table to be filled. In order to facilitate the work I've created two combo boxes (correponding to the columns (cell D3) and rows (cell B3) heads) and then with the formulas hlookup and vlookup I've found the cell that corresponds to the match of column and row selected on combo box (cell F3). Now I want to create a button so that when we clicked on it the excel cursor will move to the cell that is calculated on cell F3.
Can you please help me?

1606391283551.png
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi & welcome to MrExcel.
How about
VBA Code:
Sub Maggie()
   Range(Range("F3").Value).Activate
End Sub
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
I have another question. If I want to move the excel cursor point to a specific cell on another sheet, based on the formula of cell F3 (supose that instead of "D8" the cell is filled with "Sheet1!D8"), what do I have to do?
I've tried the same VBA code but it didn't worked.
 
Upvote 0
How about
VBA Code:
Sub Maggie()
   Application.Goto Range(Range("F3").Value)
End Sub
 
Upvote 0
Did you copy/pate the code, or type it out?
Also are you running that code on it's own, or part of a larger macro?
 
Upvote 0
I copy/pasted the code but I changed thi initial part (Sub Maggie()) and I'm running the code on it's own.
 
Upvote 0
I can get a "Method Range of Object _Global failed" error, but not the one you are getting, so not entirely sure what the problem is.
A few possibilities
1) is the sheet name correct?
2) is the sheet protected?
3) is the destination cell merged?
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,917
Members
449,055
Latest member
KB13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top