hi
after converting some queries from excel to photoshop text layer, I got two problems , first alt+enter chr(10) in the excel documents didn't affect means my my text in photoshop are in the same line and haven't gone to second line, and the second thing is that I want my text go the next second line if the spacing is only one line and if its two line wrap at the same size with both two lines with the same size.
sample :
this is the test for the wraping text lines
in the one single frame
to
this is the test for the wraping
text lines in the one single frame
Sub SendAllCells2ps()
Dim I As Integer
Dim B As String
Dim LocationFolder As String
I = 1
Range("C1".Select
Do Until Selection.Cells(I, 3).Value = ""
If I < 10 Then B = "00" & I
If I < 100 And I > 9 Then B = "0" & I
If I > 99 Then B = I
Selection.Cells(I, 3).Select
Photoshop.Application.ActiveDocument.Layers("Text".ArtLayer.TextItem.Contents = Selection.Value
I = I + 1
LocationFolder = "C:\Test\" & B & ".psd"
Photoshop.Application.ActiveDocument.SaveAs (LocationFolder)
Loop
End Sub
after converting some queries from excel to photoshop text layer, I got two problems , first alt+enter chr(10) in the excel documents didn't affect means my my text in photoshop are in the same line and haven't gone to second line, and the second thing is that I want my text go the next second line if the spacing is only one line and if its two line wrap at the same size with both two lines with the same size.
sample :
this is the test for the wraping text lines
in the one single frame
to
this is the test for the wraping
text lines in the one single frame
Sub SendAllCells2ps()
Dim I As Integer
Dim B As String
Dim LocationFolder As String
I = 1
Range("C1".Select
Do Until Selection.Cells(I, 3).Value = ""
If I < 10 Then B = "00" & I
If I < 100 And I > 9 Then B = "0" & I
If I > 99 Then B = I
Selection.Cells(I, 3).Select
Photoshop.Application.ActiveDocument.Layers("Text".ArtLayer.TextItem.Contents = Selection.Value
I = I + 1
LocationFolder = "C:\Test\" & B & ".psd"
Photoshop.Application.ActiveDocument.SaveAs (LocationFolder)
Loop
End Sub