Experimente:
Cpo1 = Cells(1, 1)
Cpo2 = Application.WorksheetFunction.Rept(0, 15 - Len(Cells(1, 2))) & _
Application.WorksheetFunction.Substitute(Cells(1, 2), ",", "")
Cpo3 = Cells(2, 1)
Cpo4 = Application.WorksheetFunction.Rept(0, 15 - Len(Cells(2, 2))) & _
Application.WorksheetFunction.Substitute(Cells(2, 2), ",", "")
Cpo5 = Cells(3, 1)
Cpo6 = Application.WorksheetFunction.Rept(0, 15 - Len(Cells(3, 2))) & _
Application.WorksheetFunction.Substitute(Cells(3, 2), ",", "")
Cpo7 = Cells(4, 1)
Cpo8 = Application.WorksheetFunction.Rept(0, 15 - Len(Cells(4, 2))) & _
Application.WorksheetFunction.Substitute(Cells(4, 2), ",", "")
Dados = Cpo1 & Cpo2 & Cpo3 & Cpo4 & Cpo5 & Cpo6
Print #1, Dados
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 15/05/2012 2:56 pm