Results 1 to 7 of 7

running a macro when specific text is entered into a specific cell

Threaded View

  1. #1
    Registered User
    Join Date
    04-20-2014
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    59

    running a macro when specific text is entered into a specific cell

    Hi, I am trying to run a macro when I enter specific text into a specific cell. as you will see I am a complete novice at this, any help would be gratefully received.


    This is what I have tried, amongst other things, without any success.

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    Dim rng As Range, cell As Range
    
        Set rng = Range("F7")
    
            If cell.Value = "BLAH" Then
            Run Macro1
            End If
            
    End Sub
    Best Regards

    DeeK
    Last edited by deek; 08-02-2014 at 10:09 AM. Reason: Added Code tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA Macro To Clear Cell When Specific Text Is Entered
    By paulm99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2014, 06:52 PM
  2. [SOLVED] how to stop Command button If specific number is entered in a specific cell range
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 05:10 AM
  3. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  4. Replies: 4
    Last Post: 11-26-2012, 05:21 AM
  5. Display msgbox when specific text entered in specific range
    By Ali_Riza in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2012, 08:05 AM

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