Tabulation in a cell in InDesign or Excel
Solved
coluches
-
coluches -
coluches -
Hello,
I would like to know if it is possible to jump to the next cell in the middle of a text field.
Or do I have to use Ctrl X Ctrl V each time?
Thank you
I would like to know if it is possible to jump to the next cell in the middle of a text field.
Or do I have to use Ctrl X Ctrl V each time?
Thank you
Configuration: Windows XP Firefox 2.0.0.14
4 answers
-
Hello again,
It's clearer now, indeed.
For Excel, you'll need a macro like this:
Selection.TextToColumns DataType:=xlDelimited, ConsecutiveDelimiter:=True, Space:=True
If you want it to happen as soon as you paste something, you need to put the code in the relevant sheet:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Selection.TextToColumns DataType:=xlDelimited, ConsecutiveDelimiter:=True, Space:=True
End Sub
But be careful, as soon as you paste text into a cell, that text will be split into as many cells as there are words separated by a space.
Test it first.
m@rina -
You right-click on the sheet tab, and you choose "View Code".
You just need to paste the code (don't forget the "End Sub") and test it.
m@rina -
Hello,
I didn’t understand your question…
And besides, Excel and Indesign aren’t really the same thing…
Can you explain again?
m@rina-
Thank you, let me explain:
I know that Excel and InDesign are not the same thing, but I have the same issue for both...
When you create a table, normally you press the tab key to move to the next cell...
I would like that after pasting a text field, each word (or several) would move it to the next cell, basically making a tab within the text that would place the text into the next cell.
For example: I have aaaa aaaa bbbb bbbb bbb and I would like to put the characters b in a new cell.
I hope it's clearer now :)
-
-
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Selection.TextToColumns DataType:=xlDelimited, ConsecutiveDelimiter:=True, Tab:=True
End Sub
It works great!!!! Hours of work saved!
Thank you!