Line break code in VBA Excel
Solved
lecrol
Posted messages
224
Registration date
Status
Membre
Last intervention
-
arianinou -
arianinou -
Hello,
I am editing labels in Excel VBA; For each label, I always have 2 lines or almost, depending on the length of the label I print and the product code that comes immediately after.
I would like to be able to "force" the line break, so that it always happens at the same place in my string. But I don't know what code I need to put for that in my string.
Who knows the solution to this problem?
Thank you very much in advance.
Roland
Example: I want to print on my label "product machine thing B02465"
But I want to get it all on two lines
"product machine thing"
"B02465"
Of course, my Excel line is set to "wrap text automatically"
Configuration: Windows XP / Internet Explorer 8.0
I am editing labels in Excel VBA; For each label, I always have 2 lines or almost, depending on the length of the label I print and the product code that comes immediately after.
I would like to be able to "force" the line break, so that it always happens at the same place in my string. But I don't know what code I need to put for that in my string.
Who knows the solution to this problem?
Thank you very much in advance.
Roland
Example: I want to print on my label "product machine thing B02465"
But I want to get it all on two lines
"product machine thing"
"B02465"
Of course, my Excel line is set to "wrap text automatically"
Configuration: Windows XP / Internet Explorer 8.0