Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone please post the code to create a macro that does the following.
Pause for input on the current cell Move one cell to the right Pause for input Move one cell down and one cell to the left Re-invoke the macro Thanks, J |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could just do this with the Selection_Change event for the
worksheet: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = X Then Cells(Target.Row, Target.Column + 1).Select ElseIf Target.Column = X+1 Then Cells(Target.Row + 1, Target.Column - 1).Select End If End Sub Change the Target.Column = X and X + 1 to the appropriate column numbers, where A = 1, B = 2, C = 3, etc. HTH, Nick Hebb BreezeTree Software http://www.breezetree.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VBA macros don't pause for input unless you want to use an input box.
You would have to kludge something together selects a cell and ends. Then use an event to fire the next movement and end - and so forth. Guess it depends on how much control you want to have. You might try unlocking the specific cells, then setting EnableSelection so only unlocked cells can be selected, then protecting the sheet. -- Regards, Tom Ogilvy "Jay Oken" wrote in message ... Can someone please post the code to create a macro that does the following. Pause for input on the current cell Move one cell to the right Pause for input Move one cell down and one cell to the left Re-invoke the macro Thanks, J |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Data Input | Excel Discussion (Misc queries) | |||
write a macro to input data | Excel Discussion (Misc queries) | |||
write macro to input data | New Users to Excel | |||
how can i input data into a pre-recorded macro | Excel Programming | |||
macro to input data | Excel Programming |