Find data by entering data in another cell
Solved/Closed
Skydiver0928
-
Dec 31, 2009 at 02:13 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jan 22, 2012 at 06:53 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jan 22, 2012 at 06:53 AM
Related:
- Find data by entering data in another cell
- Tmobile data check - Guide
- Transfer data from one excel worksheet to another automatically - Guide
- Gta 5 data download for pc - Download - Action and adventure
- Digital data transmission - Guide
- Data transmission cable - Guide
4 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Jan 1, 2010 at 04:42 AM
Jan 1, 2010 at 04:42 AM
right click main menu sheet tab and click view code and in the resulting window paste this event code
now type anly number in A10 of the main menu sheet see what happens.
note the IDs are in sheet called "sheet6" and in column C.
if there is any problem post the statement where the error occurs and what is the error message.
Private Sub Worksheet_Change(ByVal Target As Range) Dim cfind As Range On Error Resume Next If Target.Address <> "$A$10" Then Exit Sub With Worksheets("sheet6") .with Columns("c:c") Set cfind = .Cells.Find(what:=Target.Value, lookat:=xlWhole) End With If Not cfind Is Nothing Then Worksheets("sheet6").Select cfind.Select Else MsgBox "this ID is not avialble" End If End Sub
now type anly number in A10 of the main menu sheet see what happens.
note the IDs are in sheet called "sheet6" and in column C.
if there is any problem post the statement where the error occurs and what is the error message.
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Jan 1, 2010 at 08:12 PM
Jan 1, 2010 at 08:12 PM
slightly modified macro
Private Sub Worksheet_Change(ByVal Target As Range) Dim cfind As Range On Error Resume Next If Target.Address <> "$A$10" Then Exit Sub With Worksheets("sheet6") .With Columns("c:c") Set cfind = .Cells.Find(what:=Target.Value, lookat:=xlWhole) End With If Not cfind Is Nothing Then Worksheets("sheet6").Select ActiveSheet.Cells.Interior.ColorIndex = xlNone cfind.Select cfind.Interior.ColorIndex = 6 Else MsgBox "this ID is not avialble" End If End Sub
if enter the contains of project, instead of Ware house, i need to search either ware house, or Ware or house.., how can i get the result?
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Jan 22, 2012 at 06:53 AM
Jan 22, 2012 at 06:53 AM
not clear . upload extract file with sheets Main and sheet 6 to speedyshare.com and give the uploaded web pae for downloading and also explain with example(s)
Jan 1, 2010 at 06:24 PM
Please forgive me you received a duplicate of this message but it appears it did not post correctly in the Forum.
I want to thank you so very much for the code - it works great! There is one other thing I would like to do in reference to this same issue. When the VBA code takes the user from Cell A10 in the MainMenu sheet to the corresponding ID number in Column C of Sheet 6, is there a way to add a line of code to actually select the name of the project which is in Column B. So in my original example - when the user types the number 331 into Cell A10 on the MainMenu sheet and the code brings him to Cell B4 on sheet 6 (which is the name of the project with the ID number 331 in Cell C4). I would then like to make Cell B4 temporarily fill with a Yellow color so it is easy to find in the list of multiple projects on Sheet 6.
Again, thank you for such great code. You have saved me countless hours of work.