Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Guys.
I'm new to VBA... and untill i get a book to help me out, let me giv you guys a try. I want to search my sheet with the value in the active cell (or speciffic cell). Is that possible? I'm trying to do a simple inventory sheet. I enter the item numbe (0024 for example), and excel reports the row its in. I can make it fancier from there but i need excel to return the row th result is in. Tell me what functions in vba to look up, or some sample code. I' sure i can decipher it. Thanx : -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ItemCode = Activecell.Value
Cells.Find(What:=ItemCode, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _ ).Activate ItemRow = Activecell.Row HTH, Nikos "ciupe " wrote in message ... Hi Guys. I'm new to VBA... and untill i get a book to help me out, let me give you guys a try. I want to search my sheet with the value in the active cell (or a speciffic cell). Is that possible? I'm trying to do a simple inventory sheet. I enter the item number (0024 for example), and excel reports the row its in. I can make it fancier from there but i need excel to return the row the result is in. Tell me what functions in vba to look up, or some sample code. I'm sure i can decipher it. Thanx :) --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't change the active cell when navigating a spreadsheet | Excel Discussion (Misc queries) | |||
Can I copy a field from another spreadsheet based on search? | Excel Worksheet Functions | |||
Insert a number of rows based on a value in a cell on active row | Excel Discussion (Misc queries) | |||
Insert a number of rows based on a value in a cell on active row | Excel Worksheet Functions | |||
Select a range of columns based on active cell | Excel Programming |