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: 16
Default Highlighting a cell, and undo and redo buttons

I ran the following code to validate if a user has entered a number.
The problem is when the cells interior color are changed, the undo and
redo buttons become non functional. What can I do to make them
functional and still highlight a cell with an invalid entry? When
cells are validated using Excel's validation, the undo and redo
buttons still work OK. How do I highlight a cell like in Excel's cell
validation? Is there another way of highlighting?

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If IsNumeric(Cells(Target.Row, Target.Column).Value) = False
Then
Cells(Target.Row, Target.Column).Select
Cells(Target.Row, Target.Column).Interior.ColorIndex = 4


Thank you
John
 
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
undo and redo commands Elitor Excel Worksheet Functions 3 March 29th 09 05:16 PM
Undo, Redo Excel 2003 zvg Excel Discussion (Misc queries) 1 October 1st 08 04:33 PM
Undo, redo buttons always grayed out Karl Excel Worksheet Functions 3 August 9th 07 09:35 PM
undo and redo do not work CidsUprite Excel Worksheet Functions 4 May 11th 07 03:15 AM
undo/redo action dmuraki Excel Discussion (Misc queries) 3 November 30th 04 12:11 AM


All times are GMT +1. The time now is 03:52 PM.

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

About Us

"It's about Microsoft Excel"