Advertisement

05.15.2008 at 06:46AM PDT, ID: 23405061
[x]
Attachment Details

Microsoft, Excel, 2003, VBA Finding text from any part of an active cell?

Asked by CraigLowdon in Microsoft Excel Spreadsheet Software, Visual Basic Programming, VB Script

Tags: Microsoft, Excel, 2003, VBA

My Current code below shows the code i currently have.

the variable "D" is just what i have inserted while i dont know what to put, I really want it to say that the activecell.formula contains the word "USER" - this could be at the beginning middle or end of the cell so I can not use LEFT, MIDDLE or RIGHT.

I know in an access query etc I can use a wildcar but this does not seem to work within visual basic (i have picked up what I know from self teaching)

Any help on how i can do this will be appreciated.

Thanks
CraigStart Free Trial
1:
If WS_Sheet1.Range("B" & Sheet_Active_Row).Formula = d Then
[+][-]05.15.2008 at 06:50AM PDT, ID: 21573587

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Excel Spreadsheet Software, Visual Basic Programming, VB Script
Tags: Microsoft, Excel, 2003, VBA
Sign Up Now!
Solution Provided By: matthewspatrick
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628