Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capute zeros. 1

Status
Not open for further replies.

sundar766

Technical User
Feb 6, 2008
9
i need help from you guys. thanks n advance.
the actual screen shows 0001 but copied in excel only 1
i need 0001 in excel sheet.
Dim SettlementNo as String
SettlementNO = Trim(Sess0.Screen.GetString(x, 40, 5))
.Cells(Rw, "A").Value = SettlementNO
 
Your cell is probably setup to remove the zeroes by default. You can fix this by changing the cells to text. Or you can add a single quote prior to when you set the value:

.Cells(Rw, "A").Value = "'" & SettlementNO
 
Skie
thank you very much. it works fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top