+ Reply to Thread
Results 1 to 8 of 8

Move Cursor from one column to another

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Move Cursor from one column to another

    I was trying with some options here to move the cursor from Column A to Column B after some text is entered into it.can some body help me with that?

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Move Cursor from one column to another

    Have you tried using the arrow keys?

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Move Cursor from one column to another

    Hello wish2excel,

    If you want to change the direction of the direction of the cursor after Enter is pressed, you can change the Direction setting for Excel. This will effect all worksheets.

    To Change the Direction of the Cursor After Enter is Pressed
    1. On the Menu bar select Tools > Options...
    2. This displays the Options dialog. Select the Edit tab.
    3. Find the box Move selection after Enter. If it is not checked, click it.
    4. Below this box is the Direction drop down. Select Right.

    If you want the cursor to move from column A to B and back again on only one sheet or more sheets, you will need a VBA macro. Here is an example.
    Please Login or Register  to view this content.
    How to Save a Worksheet Event Macro
    1. Copy the macro using CTRL+C keys.
    2. Open your Workbook and Right Click on the Worksheet's Name Tab for the Worksheet the macro will run on.
    3. Left Click on View Code in the pop up menu.
    4. Paste the macro code using CTRL+V
    5. Make any custom changes to the macro if needed at this time.
    6. Save the macro in your Workbook using CTRL+S
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Move Cursor from one column to another

    I want to use enter key and move the cursor only if there is some data entered in it,TEXT only not numbers

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Move Cursor from one column to another

    Hello wish2excel,

    I have a made a change to the macro to check that the cell is not empty.
    Please Login or Register  to view this content.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Move Cursor from one column to another

    Try this in the sheet mudule of the sheet you want to control.
    Please Login or Register  to view this content.

    Hope this helps
    Last edited by Marcol; 10-07-2010 at 11:54 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Move Cursor from one column to another

    I have made some changes and added more headings to the file,These are the heading that i have now

    Column A-Sl No.
    Column B -Date
    Column C- Time
    Column D-Inspection Number
    Column E-Credit Hire
    Column F-Case Types
    Column G-Inspection Date Raised
    Column H-Allocation Date
    Column I-Booking Date
    Column J Allocation Date
    Columns K-Booking TAT
    Column L-Inspection Reopned
    Cloumn M-Reopned Date
    Column N-Type of Inspection
    Column O-Reason for AUC
    Column P-Reason for Delay In Allocation
    Column Q-Reason for Delay in Booking
    Column R-Comments

    The cursor movements are as listed below

    Once Sl No. is entered in Cloumn A and press enter cursor should move to column B
    ( Entered Manually).On column B put current date and move curso to Column C(Automatically)On column C put the current time and move cursor to column D(Automatically).Once the date is entered on Inspection date raised and Allocation date, Allocation TAT is calculated using NetworkDays formula on Column J(Calculated Using Formula).Based on the Allocation TAT value if it is more than 2 cursor should move to Inspection Reopened on Column L.(Automatically)If Inspection Reopened on Column L is YES,Cursor should go to Column M,Reopened Date(Automatically), If Column L is NO, Cursor should go to column P,Reason for delay in Allocation(Automatically).
    If J is less than or equal to 2,Cursor should move to Booking Date on column I,(Automatically).After booking date in Column I is entered, Booking TAT is calculated using NetworkDays(Calculated Using Formula). If Booking TAT is more than 2 Cursor should go to Column Q, Reason for Delaying,(Automatically).If Booking TAT is less than 2 Cursor should go to Column N,Type of Inspection(Automatically).If column N Type of Inspection is AUC,Cursor should go to O, Reason for AUC,(Automatically).If column N Type of Inspection is anything else Move cursor to Column R Comments,(Automatically).

  8. #8
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Move Cursor from one column to another

    I am attaching a sample file here,If some body can help me moving the cursor to different locations

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1