Re: Jumping columns

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Lolly,
You only mentioned 3 columns not 20, but if you look at my
event.htm page you should be able to modify what was supplied
to limit it to certain rows. In any case why not try the macro and try to
modify it. From what you describe, you will have to use a macro.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Lolly" <Lolly@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C2520C7C-7BFB-41C3-93DF-58E2C72CE96F@xxxxxxxxxxxxxxxx
> Hi David,
> Thank you for that detailed information. However it doesn't fully answer my
> query as the data columns being used are fixed for all the many users and we
> therefore cannot rearrange columns. The example columns of A, B and C are
> actually in the middle of other fields of information. When a number is
> entered in column B we want a cooresponding name from a maser list to
> automatically appear in column A and then for the cursor to jump to column C.
> We already have the correct vlookup equation in column A. The Master List is
> on Sheet1 and our records are being entered on Sheet 2. I hope this gives a
> better idea of what is required.
> Sorry, but I must admit I did become confused with the macro instructions
> and feel they do not accurately cover what we require in the one row on each
> record's data. There are about 20 colums in each row and each row needs to be
> completed before entering the data for the next record. These records relate
> to data collected from bird banding.
>
> "David McRitchie" wrote:
>
> > Hi Lolly,
> > It is so easy to rearrange columns. What is good for data entry is
> > usually in the order you want to look at them. Rearranging columns.
> > http://www.mvps.org/dmcritchie/excel/fillhand.htm#movecol
> >
> > However for what you asked...
> > You can affect how the cursor moves by the Enter key (direction),
> > Tab key, arrow keys, and prevent entry into cell with cell protection in effect.
> >
> > An event macro to
> > go to B in next row after entry in C
> > go to A in same column after entry in B
> > go to C after entry in A
> >
> > I don't know if this will help you or frustrate you but the Event macro
> > will only move the cursor after entry. If you make a mistake the undo
> > key will return you the last change and it's previous value...
> >
> > More information on Event macros in
> > http://www.mvps.org/dmcritchie/excel/event.htm
> >
> > Install the following by right click on the sheet tab, then view code.
> >
> > Private Sub Worksheet_Change(ByVal Target As Range)
> > Select Case Target.Column
> > Case 3 'After Entry in C next row column B
> > Target.Offset(1, -1).Activate
> > Beep '-- may be distracting but intent is to indicate new row
> > Case 2 'After Entry in B same row column A
> > Target.Offset(0, -1).Activate
> > Case 1 'After Entry in A same row Column C
> > Target.Offset(0, 2).Activate
> > End Select
> > End Sub
> >
> > If you make a mistake use the Undo key Ctrl+Z to return from your last change was made.
> >
> > ---
> > HTH,
> > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
> > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
> > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
> >
> > "Lolly" <Lolly@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:DC976DB6-78E9-444E-958E-50704166170D@xxxxxxxxxxxxxxxx
> > > Using Excel 2000 and with three columns, A, B and C for example, after
> > > entering a number in column B, is it possible to jump back to column A in
> > > which there is a vlookup equation, and then jump forward two columns to
> > > column C?
> > >
> > > Your solution would be gratefully received.
> >
> >
> >


.



Relevant Pages

  • Re: Jumping columns
    ... automatically appear in column A and then for the cursor to jump to column C. ... "David McRitchie" wrote: ... > Tab key, arrow keys, and prevent entry into cell with cell protection in effect. ... > I don't know if this will help you or frustrate you but the Event macro ...
    (microsoft.public.excel.misc)
  • Manipulating structures? Need some help
    ... Modify an entry in the DataBase ... But how would I do that in a script, like without doing it to a specific name. ... In essense so the user chooses which item to choose to modify. ... However it will effect both elements in the structure, i only want to effect one item and decrease the item inventory entered to decrease by the amount. ...
    (comp.soft-sys.matlab)
  • How to update a table only with the missing row (identified by pri
    ... "USER ENTRY" I have a update button on the form And once I press the update ... Private Sub IMPBTN_Click(ByVal sender As System.Object, ... Schedule to View Orders And Modify Schedule to Modify") ...
    (microsoft.public.data.oledb)
  • updating a table with the row that is not already present in a tab
    ... "USER ENTRY" I have a update button on the form And once I press the update ... Private Sub IMPBTN_Click(ByVal sender As System.Object, ... Schedule to View Orders And Modify Schedule to Modify") ...
    (microsoft.public.vb.database.ado)
  • Win 98 custom logon
    ... I am trying to modify the Win98 login dialog to perform some custom ... I have located the MSNP32.dll entry ... in the registry and a test program based on the MyNP sample supplied ...
    (microsoft.public.platformsdk.security)