Results 1 to 4 of 4

Thread: Cell Click Event

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    5

    Question Cell Click Event

    I need to activate conditional formating on a range of cells but only if an individual cell has been clicked. Basically I need for the cell to behave the same as a command button. Any ideas on how to do this?

  2. #2
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    That's how I do everything, say you wanted to use cell B3...


    VB Code:
    1. If ActiveCell.Address = "$B$3" Then
    2.     Do WhatEver
    3. End If

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    5
    Do you execute this code on a sheet.activate or auto_open or sheet.select?

  4. #4
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    VB Code:
    1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    My bad, there ya go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width