Selecting A Cell Without Moving Focus To It

Ark68

Well-known Member
Joined
Mar 23, 2004
Messages
4,616
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
My apologies if I'm using the term "Focus" inappropriately.

I recall a way that there was a means in which a cell could be selected on a protected worksheet that was off the field of view in which the the focus didn't change to that cell.
For instance. if I want the keep cell A1 always in view, but sent the selection box off screen to say unlocked cell DA1, how would I do that? If I use select, the worksheet moves to that cell.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi Candyman, thank you for your suggestion. Unfortunately that wasn't what I was looking for.
 
Upvote 0
This is what I was looking for ...
VBA Code:
Sub RemoveCellSelectionBox()
  Application.ScreenUpdating = False
  Dim CurrentColumn As Long
 
  CurrentColumn = ActiveWindow.ScrollColumn
  ws_form.Range("DA1").Select
  ActiveWindow.ScrollColumn = CurrentColumn
 
  Application.ScreenUpdating = True
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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