LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Looking up two variables

Group,

I am working on a project that selects 2 values and looks
for those 3 values in another sheet. My question is how
can i make it add the variable found ones the two criteria
are met. (code is below)


Thanks in advance,

Fish

Dim fsheet As String
Dim rng As Range
Dim val As String
Dim val1 As String


Do
ActiveCell.Offset(1, 0).Select
val = ActiveCell.Offset(0, -12).Value


With Workbooks(fnameb).Worksheets(fsheet)
Set rng = .Columns(3).Find(val)
End With
If Not rng Is Nothing Then
val1 = rng.Offset(0, 11).Value
 
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
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
More than 1 Variables [email protected] Excel Discussion (Misc queries) 1 November 29th 06 02:09 AM
Three Variables George Excel Worksheet Functions 1 July 8th 06 07:47 PM
Using variables . . . Wayne Knazek Excel Discussion (Misc queries) 2 July 6th 06 05:01 PM
Too many variables? elite Excel Worksheet Functions 2 May 19th 06 10:26 PM


All times are GMT +1. The time now is 01:20 AM.

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"