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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to truncate blanks from data in excel. 1

Status
Not open for further replies.

wvdba

IS-IT--Management
Jun 3, 2008
465
US
Hi.
i have an excel file that contains first_name, last_name and middle_names.
when i received the file, i ran it against a database for matches, and found out that there were no matches. we know for sure that those names are in the database. after displaying the sql statement, we found out that the names are padded with blanks to be 20 chars long.
is there any way to truncate the padded blanks and then run the data in the vb script?
thanks.
 
Have a look at the Trim function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
thanks, PHV.
i'll take a look.
 
thanks PHV.
it worked perfectly.
cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top