473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using Tab key to move to next Text Box

Our company received an Excel file that had Text Boxes to enter values and you could hit tab to move directly to the next Text Box once done entering data in the current Text Box.

When our company switched to Office 2007, Excel stopped showing this behavior. How can I get it back? Near as I can tell the original file has no Macros. I have tried deleting all the Text Boxes and making new ones, but I don't know a Macro to make the Tab thing occur like it used to.
Jan 22 '08 #1
7 19672
kadghar
1,295 Expert 1GB
Our company received an Excel file that had Text Boxes to enter values and you could hit tab to move directly to the next Text Box once done entering data in the current Text Box.

When our company switched to Office 2007, Excel stopped showing this behavior. How can I get it back? Near as I can tell the original file has no Macros. I have tried deleting all the Text Boxes and making new ones, but I don't know a Macro to make the Tab thing occur like it used to.
There's no need of macros to do this. The 'Tab Thing' (i liked that name) should be a property of the text boxes. TabStop property should be set to True, and it must have a TabIndex (that is the order the tab key follows)

Now, in Vista, many features were removed, im affraid i cannot check them right now, but i hope (hope so badly) this is not one of those.
Jan 22 '08 #2
kadghar
1,295 Expert 1GB
oh, i forgot to tell you. In case this is not longer a feature, you can always do it with VBA, in the KeyDown event of each Textbox, something like

Expand|Select|Wrap|Line Numbers
  1. if keycode=9 then '9 is the code of Tab key
  2.     ActiveSheet.Shapes("text box 2").Select 'or whatever textbox you want to be selected when you press Tab from this text box
  3. end if
well, HTH
Jan 22 '08 #3
Alright, well I have no idea how to set the Tab Stop and Tab Index in Excel 2007. I don't see those properties or options anywhere.

Luckily this is not Vista, Office 2007 in running in XP. Just to clarify, this file is a workbook with 3 worksheets in it. Each sheet has a few pictures inserted and inserted overtop of the pictures are text boxes to enter dimensions (the pic shows measurements and the text boxes have the exact values).

It is not a form or anything. If it comes down to using the VBA method, is that scripting for the entire workbook, sheet, or each Text Box?
Jan 22 '08 #4
kadghar
1,295 Expert 1GB
Alright, well I have no idea how to set the Tab Stop and Tab Index in Excel 2007. I don't see those properties or options anywhere.

Luckily this is not Vista, Office 2007 in running in XP. Just to clarify, this file is a workbook with 3 worksheets in it. Each sheet has a few pictures inserted and inserted overtop of the pictures are text boxes to enter dimensions (the pic shows measurements and the text boxes have the exact values).

It is not a form or anything. If it comes down to using the VBA method, is that scripting for the entire workbook, sheet, or each Text Box?
Noup, im affraid to tell you i've just searched in the Object Browser for any key down, press or up event in the excel sheet, book or shapes, and there're no such things. There are some events like Change or SelectionChange that could be useful, simulating a Timer with DoEvents and registering the keycodes each time, but i think that will be a little bit more complicated (and not realy sure if they're possible using VBA).

I'll keep subscribed here in case someone else knows a better solution, (since it sounds like a common problem).
Jan 22 '08 #5
Killer42
8,435 Expert 8TB
I'd just like to check something. You've told us what the new version isn't doing. But what is it doing instead?
Jan 23 '08 #6
Well this is odd. Instead of the text boxing growing as you type horizontally, they grow vertically. So if I type "the" it looks like this:

t
h
e

and pressing TAB doesn't move to the next Text Box. Instead it move to the next line vertically as well. Now I tried deleting all existing Text Boxes and creating new ones. Once I did that I could now type with the box autosizing horizontally, like it used to. But hitting TAB then doesn't go to the next Text Box. Instead it just makes the autosizing box bigger like an actual indent has been placed in it.
Feb 8 '08 #7
Killer42
8,435 Expert 8TB
Sorry, I've gotten a bit lost in this thread. Do you think you could give us a brief description of the exact details of what you did, which resulted in the vertical text?

Also, something else just came to mind. Have you checked the compatibility options in Excel to see whether there's a setting which will make it behave in the old manner? Maybe you won't need to change anything, after all.
Feb 12 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Anand Ganesh | last post by:
Hi All, How to Implement Move Next, Move Previous, Last Record and First Record in a DataGrid Control ? Is there any standard tool available in the tool box button? Thanks for your time. ...
4
by: Drygast | last post by:
I get the value that doesn't add up correct. I have 2 textboxes where I enter numbers, I then calculate them and present them as a reslut in a 3rd textbox, however when the result is calculated...
3
by: Mike L | last post by:
Custom text box to go to next text box in tab list. When the user types in a text box and the max length is meet, the focus goes to the next text box in the tab list. Here is my code so far, but...
55
by: indhu | last post by:
HI all one sequence has many panels. when i select combo it displays all the fields but panel has more rows. i want to view that also. how to do that? move next and previous commds are there...
3
by: Dan S | last post by:
I have about 10 Text boxes in an entry form I created in excel. I would like to be able to tab to the next text box (all text boxes have unique names). There is no specific length to each text box....
3
by: dianaj86 | last post by:
I have multiple dropdownlists each one filled with values from a specific column in the table. Also I have multiple textboxes corresponding to dropdownlists. For example, when I select an item from...
9
by: thelner | last post by:
Hi, quick question. I have numbered labels and i want to fill the text using for next. txt1 txt2 . . . .
2
quadri
by: quadri | last post by:
Im writing text on picture box in paint event using this code e.Graphics.DrawString(TextBox1.Text, Font, Brushes.Black, 0, 0); pictureBox1.Invalidate(); i need to...
9
by: dl3kla | last post by:
this my program flashing text how can i move the text Hello from left side to right side import javax.swing.JApplet; import java.awt.Graphics; import java.awt.Color; import java.awt.Font; ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.