Solved

Remove help button from excel data validation

Posted on 2014-07-27
9
267 Views
Last Modified: 2014-08-03
Hi Experts,

I have been using cell data validation in Excel VBA project. Everything works fine except I do not want the help button.

Is there any better way to get rid of this inbuilt button ? Looking forward to hearing from you.
0
Comment
Question by:satmisha
  • 4
  • 3
  • 2
9 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 100 total points
ID: 40223483
HI,

You cannot delete the in-built Help but you can create a workaround

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
    If Range("A1").Value <> 1 Then
        response = MsgBox("Value must be 1", vbRetryCancel + vbCritical, "Error")
    End If
End If
If response = 1 Then
'do something
Else
'Do something else
End If
End Sub


Regards
0
 

Author Comment

by:satmisha
ID: 40223510
Yes you are right that we can not delete but cant we override this the way we do in other technologies ? Actually I have apply this to cell level and confused even how to use the way you are suggesting above.

Looking forward to hearing from you.
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 40223544
Hi

If Not Intersect(Target, Range("A1")) Is Nothing Then
tests which cells are tested

If Range("A1").Value <> 1 Then
tests cell A1

Regards
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40225520
What help button are you talking about?  I'm not aware of any.

Do you mean the In-cell dropdown arrow (like you see with data filters)?  You CAN turn that off:
in-cell dropdown option
-Glenn
0
 

Author Comment

by:satmisha
ID: 40225635
Thanks Glenn for your reply. Here I am enclosing the link where you could see the help button.

http://stackoverflow.com/questions/12956415/remove-help-button-from-excel-data-validation
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 100 total points
ID: 40225643
Nope; can't delete it.  And interestingly, the solution provided here is nearly identical to the one shown in that link from 2012.
0
 

Author Comment

by:satmisha
ID: 40227946
Generally you can extent some functionality and override as per your own requirement in oops like using concept inheritance etc.

I am really disappointed with VBA that we are provided no other choice but to use existing once only :-(
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40228415
Sorry that it doesn't do everything, but as you see, there IS a VBA workaround if you're so inclined to use it.  Frankly, the Help button doesn't bother me in the least.
0
 

Author Closing Comment

by:satmisha
ID: 40237333
Thanks a lot guys for your valuable replies.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvieā€¦
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question