testing for characters

G

Guest

I'm trying to test 2 columns of data in my spreadsheet.
Column "A" is definded by the string "S_Create", works great.
Columns "D" and "E" are defined as strings as well.
Column D contains text followed by multiple spaces. My "And" test fails
becase of the trialing spaces. How do I test for "contains characters" vs. =
Or.. how do I search for a string plus any other characters ex. "Feature
Defintion*" (which did not work).

Thanks, Ron

If s_Create = "X" And s_Col_D = "Feature Definition" Then
Print #1, s_Col_D & "=" & s_Col_E;
 
S

Sandy

Try using Trim...

If s_Create = "X" And Trim(s_Col_D) = "Feature Definition" Then
Print #1, s_Col_D) & "=" & s_Col_E;
 
S

Sandy

Try using Trim...

If s_Create = "X" And Trim(s_Col_D) = "Feature Definition" Then
Print #1, s_Col_D & "=" & s_Col_E;

Sandy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top