Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Search In Sheet using macro

Hello,

I will explain my problem :
I have a workbook with 3 sheet.
I want to search if a value exist in one of the sheet, and if it exist
I want it to say true, if not exist false.
I need it by VBA macro, and not with Lookup.

Thanks for you help, :D


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Search In Sheet using macro

Try this slideman

Sub test()
If Application.WorksheetFunction.CountIf _
(Sheets("Sheet1").Cells, "ron") = 0 Then
MsgBox "False"
Else
MsgBox "True"
End If
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"slideman " wrote in message ...
Hello,

I will explain my problem :
I have a workbook with 3 sheet.
I want to search if a value exist in one of the sheet, and if it exist
I want it to say true, if not exist false.
I need it by VBA macro, and not with Lookup.

Thanks for you help, :D


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Search In Sheet using macro

Thanks !!!

It works great ........

--
Message posted from http://www.ExcelForum.com

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
Search a name in one sheet and entry it into another sheet Shilpi Excel Worksheet Functions 4 May 5th 09 01:11 AM
search a value in W/sheet TUNGANA KURMA RAJU Excel Discussion (Misc queries) 7 April 4th 09 01:54 AM
Search for rows in one sheet and copy into another sheet based on customer id [email protected] Excel Worksheet Functions 1 October 22nd 07 03:09 AM
Search for a Sheet Chance224 Excel Discussion (Misc queries) 3 December 14th 04 12:29 AM
search for a sheet Lee S.[_3_] Excel Programming 1 September 13th 03 01:55 AM


All times are GMT +1. The time now is 10:34 AM.

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

About Us

"It's about Microsoft Excel"