+ Reply to Thread
Results 1 to 2 of 2

Excel VBA Code to hide dark black selector box?

  1. #1
    Scott B
    Guest

    Excel VBA Code to hide dark black selector box?

    Is there any VBA Code to hide the dark box that indicates the currently
    selected cell? My sheet I have has no need for this to be seen. Hiding it
    would be nice. TIA!

    Scott



  2. #2
    Dave Peterson
    Guest

    Re: Excel VBA Code to hide dark black selector box?

    If you protect the sheet in code, you can make it so the user cannot even select
    a cell.

    Option Explicit
    Sub auto_open()
    Dim wks As Worksheet
    Set wks = Worksheets("sheet1")
    With wks
    .Protect Password:="hi"
    .EnableSelection = xlNoSelection
    End With
    End Sub

    Or maybe you could just select a cell that's way off the screen (IV65536?).
    Scott B wrote:
    >
    > Is there any VBA Code to hide the dark box that indicates the currently
    > selected cell? My sheet I have has no need for this to be seen. Hiding it
    > would be nice. TIA!
    >
    > Scott


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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