Green Cell Selection Marker

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
982
Office Version
  1. 2021
Platform
  1. Windows
Hello All,
Here's a trivial question, but it bothers me.
I always end my program with Selecting A1. However, the green cell select marker remains.

How can I hide the green cell marker, at the very end of the code, until a user clicks on another cell, and the cell marker reappears as normal?
Thanks
excel 2010
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Please explain what a:
"the green cell select marker remains"

Is?

I don't understand: "the green cell select marker remains"

Do you mean the selection area?

If you want no cell selected then that's not possible.
Unless we select "A1" then scroll down 45 rows so you will not see Range("A1")

Something like this:

Code:
Sub Scroll_Down()
Range("A1").Select
ActiveWindow.ScrollRow = 45
End Sub
 
Upvote 0
Code:
'Select A1 on All work Sheets & Return to Template Tab
For Each sht In ActiveWorkbook.Worksheets
    If sht.Visible Then
        sht.Activate
        Range("A1").Select
    End If
Next sht
Sheets("Template").Select
Rows("1:1").Clear
Range("A1") = "v2.1"
ActiveWindow.ScrollRow = 100
Columns("A:B").Select
    With Selection
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter
    End With

End Sub

Here is my code at the end of the program. Although your code does get rid of the green boarder surrounding A1, it also leaves A1 out of sight and my code to select columns A:B becomes Grayed Out and surrounded by the green boarder.
With your code, can we scroll back up and running my A:B column select, and we scroll back up to the top, with no gray cells or cells selected, effectively getting rid of the green cell select boarder?
Thanks for the help
 
Upvote 0
Well my little suggestion does not get rid of the Green Boarder. It's just that you cannot now see the active cell. Not sure what your trying to do. I just gave you a suggestion. I have never had a person who want's to select a cell but does not want to see the cell selected.
Code:
'Select A1 on All work Sheets & Return to Template Tab
For Each sht In ActiveWorkbook.Worksheets
    If sht.Visible Then
        sht.Activate
        Range("A1").Select
    End If
Next sht
Sheets("Template").Select
Rows("1:1").Clear
Range("A1") = "v2.1"
ActiveWindow.ScrollRow = 100
Columns("A:B").Select
    With Selection
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter
    End With

End Sub

Here is my code at the end of the program. Although your code does get rid of the green boarder surrounding A1, it also leaves A1 out of sight and my code to select columns A:B becomes Grayed Out and surrounded by the green boarder.
With your code, can we scroll back up and running my A:B column select, and we scroll back up to the top, with no gray cells or cells selected, effectively getting rid of the green cell select boarder?
Thanks for the help
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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