try this
declare a variable say
Dim oval
and in the SelectionChange
Event
Public Sub Worksheet_SelectionChange(ByVal Target As Range)
oval = Target.Value
End Sub
and in your Worksheet_Change
event set
old_value = oval
More Related Contents:
- How do I get values from a hidden worksheet using VBA [closed]
- How to copy cells that contain certain text to another worksheet [closed]
- VBA Macro for copying and pasting columns on same excel sheet
- Excel VBA, code to count the # of filled cells, then find highest and 2nd highest and subtract the corresponding column #’s [closed]
- Levenshtein Distance in VBA [closed]
- Unprotect VBProject from VB code
- Can VBA Reach Across Instances of Excel?
- Excel VBA – Delete empty rows
- Efficient way to delete entire row if cell doesn’t contain ‘@’ [duplicate]
- Building Undo Into an Excel VBA Macro
- Excel vba add code to sheet module programmatically
- Best workaround for VBA Transpose array length limit?
- How to Lock the data in a cell in excel using vba
- How to use Events with Option Button Controls on Userform [duplicate]
- How do I use variables to set properties in VBA (Excel)
- VBA: Else without If Error
- Workbooks.Open Method in VBA
- Windows().Activate works on every computer except one
- How to highlight a cell using the hex color value within the cell?
- Convert RTF (Rich Text Format) code into plain text in Excel
- lastrow and excel table.
- Open a workbook from VBA and disable Workbook_Open() code?
- Creating form programmatically in the module using vba
- What are the differences between using the New keyword and calling CreateObject in Excel VBA?
- How to filter listbox values based on a Textbox value
- Find and FindNext for Excel VBA
- Meaning of .Cells(.Rows.Count,”A”).End(xlUp).row
- How do I get a list of unique values from a range in Excel VBA?
- How to get selected value in multicolumn listbox
- Query my excel worksheet with VBA