Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default IF Mytest.count0 then VLOOKUP

Hi All......

I have a line of code that does a test

If MyTest.Count 0 Then

What I would like "then", is if the macro would look up the WorkBook name
on "SpecificSheet" in column A, and step over to the right "X" columns
(according to the value in cell K1) and place the result of Mytest.count
therein.....

Is this a doable thing?

TIA for suggestons/solutions
Vaya con Dios,
Chuck, CABGx3




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default IF Mytest.count0 then VLOOKUP


If MyTest.Count 0 Then
On Error Resume Next
ans =
application.Match(Activeworkbok.Name,Worksheets("S pecificSheet").Columns(1),
0)
If IsError(ans) Then
MsgBox "Not found"
Else
Worksheets("SpecificSheet").Cells(ans, Range("K1").Value).Value
= myTest.Count
End If
End If

untested, but should get you started

--

HTH

RP
(remove nothere from the email address if mailing direct)


"CLR" wrote in message
...
Hi All......

I have a line of code that does a test

If MyTest.Count 0 Then

What I would like "then", is if the macro would look up the WorkBook name
on "SpecificSheet" in column A, and step over to the right "X" columns
(according to the value in cell K1) and place the result of Mytest.count
therein.....

Is this a doable thing?

TIA for suggestons/solutions
Vaya con Dios,
Chuck, CABGx3






Reply
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
vlookup count? Fluke[_2_] Excel Worksheet Functions 2 May 21st 09 04:29 PM
Macro Count with Vlookup Rbirdie Excel Discussion (Misc queries) 0 March 25th 09 09:01 PM
VLOOKUP or COUNT IF? Rob-WNS Excel Discussion (Misc queries) 3 October 17th 06 04:42 PM
Using VLOOKUP to count. shakey1181 Excel Discussion (Misc queries) 3 May 12th 06 12:33 PM
count &vlookup marcie Excel Worksheet Functions 4 February 28th 05 02:31 PM


All times are GMT +1. The time now is 03:42 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"