Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A2" On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target Me.Range("A6").Select End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message ups.com... Hello fellow programmers! I am in need of a macro that will simply jump to another location on a spreadsheet after the end-user types anything in a particular cell... I would like it so that if someone types an answer for a question in cell A2 a macro will fire causing the spreadsheet to then select cell A6. Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using macro to copy a part of a cell content to next cell | Excel Discussion (Misc queries) | |||
How to check a cell for content before running macro. | Excel Programming | |||
Macro on cell content | New Users to Excel | |||
A Macro to Edit Cell Content | Excel Programming | |||
macro clearing cell content | Excel Programming |