LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
cbanks
 
Posts: n/a
Default Search In a Macro/VBA

It sounds simple but its really causing me problems.. Here is what I am
currently having to do..
If Range("J2") < "Warn" Then
Range("Q2").Select
ActiveCell.FormulaR1C1 = "Warning"
End If
If Range("N2") = "PSSNAP" Then
Range("Q2").Select
ActiveCell.FormulaR1C1 = "Sales"
End If
If Range("L2") = "2669" Then
Range("Q2").Select
ActiveCell.FormulaR1C1 = "Warning"
End If
Ok. This list goes on an on.. I basically have about 15 more strings like
this to add on.. Is there not away to have the macro search through the
columns and have it input my answers on the corresponding cell in column "Q"
if the data from column J/L matches what i need? I need help on this bad.
ASAP. Thanks a ton!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i build a search table in excel Obi-Wan Kenobi Excel Worksheet Functions 2 March 20th 06 03:20 PM
build a search tool in excel Obi-Wan Kenobi Excel Discussion (Misc queries) 1 March 18th 06 03:21 PM
Search open sheets in workbook and insert into open sheet punx77 Excel Discussion (Misc queries) 0 March 6th 06 05:07 PM
Search within workbook Mare New Users to Excel 3 October 10th 05 07:17 PM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 09:24 PM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"