+ Reply to Thread
Results 1 to 4 of 4

Warning if using find function over selected range

Hybrid View

  1. #1
    Registered User
    Join Date
    06-08-2009
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    2

    Warning if using find function over selected range

    Hi, is there any way to get a warning message to pop up if you are using the find function over a selected range rather than the entire sheet?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Warning if using find function over selected range

    Welcome to the forum, Jack.

    No.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-08-2009
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Warning if using find function over selected range

    Ahh, thanks.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Warning if using find function over selected range

    If you write code you can.

    Sub MyFind()
    '
    ' assign this routine to CTRL+f
    '
    ' application.OnKey "^f" , "MyFind"
    '
        If TypeOf Selection Is Range Then
            If Selection.Cells.Count > 1 Then
                MsgBox "About to use Find within range " & Selection.Address & " only"
            End If
        End If
        Application.CommandBars.FindControl(ID:=1849).Execute
        
    End Sub
    Cheers
    Andy
    www.andypope.info

+ 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