PDA

View Full Version : Extract certain data from file.



satyen
05-18-2008, 04:39 AM
I am using VBA code to read formulas I have put in a Lookup table. It extracts information from a file and puts it into a Master file into the matching column. Looks at file column by column to extract data.

I need an excel formula or vba code to check whether one of the columns in a file contains the word "Happy" anywhere in the string. If it does exit loop, otherwise copy the data accross to the Master sheet. I'm not sure the best way to tackle this.

Bob Phillips
05-18-2008, 05:08 AM
Something like



If Application.CountIf(Columns("C:C"),"*Happy*") > 0 Then

'etc.