• How to insert tabs into a cell (2002, XP Pro)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » How to insert tabs into a cell (2002, XP Pro)

    • This topic has 7 replies, 5 voices, and was last updated 20 years ago.
    Author
    Topic
    #420137

    Hi all,

    Got the ‘flu and the head is slow.
    I cannot remember – how do you enter a tab into a cell from the keyboard?

    I need thai as I am using Excel to store text strings for use in comparison testing for some automated testing software.
    The text I am comparing has embeded tabs, therefore the values in Excel will need to be the same.

    Thanks in advance.

    Viewing 2 reply threads
    Author
    Replies
    • #950487

      Im not sure what you mean by tabs?
      sheet tabs?

      • #950495

        Patrick,

        Tabs – the fat key on the side of the keyboard, Character 10, Ctrl-J on the old teletype keyboards.
        I know I have entered them previously in excel, I just cannot remember the key combination.

        Thanks

    • #950489

      One way would be to use a formula like this:

      ="ABC"&CHAR(9)&"DEF"
      
      • #950496

        Legare,

        Thsi will be a problem for a lot of users who are unfamiliar with the help screens in excel, let alone small formula’s like that.
        I was hoping someone could remember the key combination to enter the tab character directly. Similar to how Alt-Enter in a cell inserts a newline.

        Thanks

        • #950507

          As far as I know, there is no way to enter the Tab character in an Excel cell directly.

        • #950619

          You could also use the VBA procedure below, which could be assigned to a button on the tool bar. However, the cell can’t be in Edit mode to executed the macro. Any text in the cell would have to be entered, the cell reselected, and then the macro executed.

          Public Sub InsertTab()
              ActiveCell.Value = ActiveCell.Value & Chr(9)
          End Sub
          
    • #950514

      One thing that is not mentioned yet is the indents feature. I know it is not tabs as such, but you can use it in a cell to align data off the margin of the cell.

    Viewing 2 reply threads
    Reply To: How to insert tabs into a cell (2002, XP Pro)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: