LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Undo change

Can anyone help to let me know how do to allow user to undo the chang
in a cell which has been conditioned through VBA?
For example, as in below, after the user changes the value in cel
(2,12), it cannot be undone to make it unchanged. The user needs t
re-enter the old value again.
I do not want to add a macro button for formatting the number.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Cells(2, 12).Value < 100 Then
Cells(2, 12).NumberFormat = """AW10""0"
Else: Cells(2, 12).NumberFormat = """AW1""0"
End If
End Su

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I undo or change emailing a worksheet Kirk Excel Discussion (Misc queries) 2 May 21st 08 07:30 PM
how can I change an undo levels in MS Excel 2003 ? HH Excel Discussion (Misc queries) 1 August 2nd 07 07:02 PM
undo a saved change gl kruger Excel Discussion (Misc queries) 2 April 11th 06 10:43 PM
Running of Worksheet Change Macro breaks undo functionality. Rob Manger Excel Discussion (Misc queries) 1 April 6th 06 04:04 AM
Undo Button Click change Kiran Excel Discussion (Misc queries) 2 July 12th 05 07:59 PM


All times are GMT +1. The time now is 12:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"