Move to specific cell and position window so user can see it.

twfme57

New Member
Joined
Oct 31, 2016
Messages
7
I have a worksheet with two sheets. I use macros that goes to specific cells in sheet 2 but when going to cells below where the window can see them, the user can't tell that they've 'arrived' at the correct cell. For instance, when they click the button to go to cell J255 in sheet2, the window isn't in the correct position to show it. Any ideas? Sorry if this has already been asked. TIA!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Please post the code you use to go to the specific cells.
 
Upvote 0
Hi, you could try like this:

VBA Code:
Sub UGTFMR()
Application.Goto Sheets("BF-1").Range("J221"), True
End Sub
 
Upvote 0
didn't work
Hi, that doesn't really give enough information to allow a follow up suggestion. What happened versus what you would like to happen?
 
Last edited:
Upvote 0
Try:
VBA Code:
Sub UGTFMR()
    Sheets("BF-1").Select
    Range("J221").Activate
    Application.Goto ActiveCell.EntireRow, True
End Sub
 
Upvote 0
Try:
VBA Code:
Sub UGTFMR()
    Sheets("BF-1").Select
    Range("J221").Activate
    Application.Goto ActiveCell.EntireRow, True
End Sub
Hi, that doesn't really give enough information to allow a follow up suggestion. What happened versus what you would like to happen?
Hi, thanks and sorry for the late reply. I'm attaching a couple of screen shots - I have an index page with part categories, the macro for each does jump to the specific category/cell but the screen doesn't scroll down so the user can see it if that makes sense. Thanks again!
 

Attachments

  • 2024-06-24_13-29-31.jpg
    2024-06-24_13-29-31.jpg
    62 KB · Views: 5
  • 1_2024-06-24_13-24-58.jpg
    1_2024-06-24_13-24-58.jpg
    90.5 KB · Views: 5
  • 2024-06-24_13-26-54.jpg
    2024-06-24_13-26-54.jpg
    115.7 KB · Views: 5
Upvote 0
I tested the code on a dummy workbook and it worked as you requested. It is hard to work with pictures. It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach screenshots (not pictures) of your sheets. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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