Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Data input macro

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Data input macro

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Data input macro

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
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
Macro Data Input rbiggs Excel Discussion (Misc queries) 10 December 10th 06 11:09 PM
write a macro to input data JPreeshl Excel Discussion (Misc queries) 2 May 6th 06 09:25 PM
write macro to input data Macro Help New Users to Excel 4 December 30th 05 12:10 AM
how can i input data into a pre-recorded macro Beyondjl Excel Programming 1 August 1st 05 01:41 PM
macro to input data glenn[_2_] Excel Programming 1 October 1st 03 04:59 PM


All times are GMT +1. The time now is 03:04 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"