Results 1 to 2 of 2

help with Code modification

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    210

    help with Code modification

    I have the following code that I would like to modify so where it says (result "pass") I would like to see the result of C1+D1 in value So it never changes again.
    I need to repeat this from cell A1 to cell A500

    Can it be done?

    Thank you


    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    Dim score As Integer, result As String
    A1 = Range("A1").Value
    
    If A1 > 0 Then
        result = "Pass"
    End If
    
    Range("B1").Value = result
    
    End Sub
    Last edited by FDibbins; 02-16-2014 at 07:00 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Little modification in code
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 02:15 PM
  2. code modification
    By tofimoon4 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2010, 06:26 AM
  3. Code Modification to alert 100% and over
    By Preatorian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2009, 03:23 AM
  4. Modification to existing Code
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2006, 12:55 PM
  5. modification for the code
    By srinivasan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2005, 11: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