+ Reply to Thread
Results 1 to 5 of 5

How to set Tab order in Excel sheet VBA

  1. #1
    Registered User
    Join Date
    03-25-2009
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    16

    How to set Tab order in Excel sheet VBA

    Hi All,

    Is there any way to set the tab order in Excel sheet.

    I have a sheet with 12 columns.
    what i required is when data entring, it go by next column.
    when data is entering at A1, then the tab/enter presses the cursors must go to B1 till all the columns complete,
    then only it go by A2 otherwise, if the user gone at A3 without entering data into A2, the cursor should go at A2.

    Example

    A---- B---- C---- D
    1---- 2---- 3---- 4
    5---- 6---- 7---- 8

    9---- 10---- 11---- 12

    Thanks in Advance.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to set Tab order in Excel sheet VBA

    You can aet the direction in Tool -> Options
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-25-2009
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: How to set Tab order in Excel sheet VBA

    Thanks Roy for your suggestion.
    But i need to do it through VBA for a spreadsheet, when the user entering data it moves forward only till last column, after completion of record then it moves to first of next row. otherwise it select the next column of that incomplete row.

    Thank you

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,688

    Re: How to set Tab order in Excel sheet VBA

    After settig the direction in Tools-> options, Select the area in which you want enter data.Then start entering data. curser moves in the selected area only.

  5. #5
    Registered User
    Join Date
    03-25-2009
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: How to set Tab order in Excel sheet VBA

    Thank You Srinivasamurthy for your early reply

    But i need to do it through VBA code only. because it is not possible to select the range manually always and
    we dont know the range how much data we will enter.
    is it possible to do dynamically (VBA).

    Thanks

+ 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