+ Reply to Thread
Results 1 to 2 of 2

update value on pointing to cell

Hybrid View

  1. #1
    Registered User
    Join Date
    03-05-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    42

    update value on pointing to cell

    in the empty excel sheet
    i click on particular cell
    there i have get number starting from one like soon

    suppose i click c4 there i get one get i click on b12 there i get two
    it is possible

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,246

    Re: pointing

    Option Explicit
    
    Public ClickCount As Double
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    If Target.Cells.Count > 1 Then Exit Sub
    ClickCount = ClickCount + 1
    Target.Value = ClickCount
    End Sub

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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