Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
worksheet change doesn't always work
I have noticed that the worksheet change doesn't always work,
expecially when I have been working on excel for a while and have opened and closed a lot of workbooks,or if I have used VBA help alot... if I reboot the computer and open a workbook that has a worksheet change event it works fine, is there a way around this besides rebooting the computer, Here's the code I am using for one of the sheets: but I am sure it is not the code because I have noticed this behaviour in othe workbooks... Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$A$5" Then Range("G5").Select ActiveCell.FormulaR1C1 = "=ROUNDUP(RC[-1]/8.0625,0)" Range("C5").Select Application.SendKeys "%{down}" End If If Target.Address = "$C$5" Then Range("D5").Select Application.SendKeys "%{down}" End If If Target.Address = "$D$5" Then Range("B10").Select Application.SendKeys "%{down}" End If If Union(Range("$b10:$b12"), Target).Address = Range("$b10:$b12").Address Then UserForm2.Show False myRow = Target.Row End If End Sub |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
worksheet change doesn't always work
It would be worth checking the status of Application.EnableEvents. If this has been set to false by some process, the events aren't detected. -- mrice Research Scientist with many years of spreadsheet development experience ------------------------------------------------------------------------ mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931 View this thread: http://www.excelforum.com/showthread...hreadid=546288 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't Get Objects To Work In A Protected Worksheet | Excel Worksheet Functions | |||
Running of Worksheet Change Macro breaks undo functionality. | Excel Discussion (Misc queries) | |||
How do change entire worksheet to uppercase letters and lock it | Excel Worksheet Functions | |||
Change format of all comments in an Excel worksheet | Excel Discussion (Misc queries) | |||
Linking items GREATER THAN O on another worksheet in the same Work | Excel Discussion (Misc queries) |