View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Move cursor to specific cell from a specific cell

Put this isn the worksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
Set h = Range("H:H")
If Intersect(Target, h) Is Nothing Then Exit Sub
Cells(Target.Row, "C").Select
End Sub


Because it is worksheet code, it is very easy to install and use:

1. right-click the tab name near the bottom of the window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm


--
Gary''s Student - gsnu200802


"JSnow" wrote:

I hope I can explain myself clearly enough to explain what I want to
accomplish. I'm using columns B through G and sometimes H. What I'd like to
have happen is if I hit enter after typing something in column H then the
cursor will go to the cell in column C of the same row (because it will be
blank).

Here's what it will look like:
Col B Col C Col D Col E Col F Col G Col H
EXAMPLE (blank) Clare 9/10 0607 018 see Clare co.

So after i type in Col H "see Clare Co." and hit enter, the cursor moves to
Col C in ths same row. I will then link the date from Clare Co. to that cell.

You vba-ers have been kick butt so far. Let's see what you got.