We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,965 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Need a starting point please?

Hello, its been a while since I have been here but I am in need of assistance. First off I haven done this in a while so to say that I am rusty is an understatement. What I am trying to do is create a form that allows for input to be entered, a button to be clicked and a search of a sheet in 2 columns of the sheet to be searched and the results of the row to be displayed on the search form. I know its a lot but any starting point would be appreciated. Thanks!

4
Contributors
12
Replies
1 Day
Discussion Span
2 Months Ago
Last Updated
51
Views
archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Update: I have somethign that kind is what I am looking for but I am having trouble getting it to actually search the sheet. This may be a dead end but any info would be appreciated. THanks!

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Please read the section of member rules which states

  • Do provide evidence of having done some work yourself if posting questions from school or work assignments
Reverend Jim
Carpe per diem
Moderator
3,599 posts since Aug 2010
Reputation Points: 561
Solved Threads: 446
Skill Endorsements: 32

Sorry about that. I have some things that I have been messing with but I am still trying to feel my way around. Give me a minute to load the file. Again sorry about the mix up

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I having soe trouble uploading due to my file type. I will resolve that first and then post the file. Sorry for the mix up

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I think this will go along.

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Sorry I am having difficulty loading my file. It has been three years since I was on here and A lot has changed. I will update when I get this resolved.

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

What sheet do you need to search from - excel?

If you have problems uploading, just post your search code here.

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20

Could someone please tell my why loading an excel file is not allowed? Once I know that then I can get on with this. Thanks!

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Copy the code you're using to the clipboard. Then click Code on the post menu. In the overlay paste your code. Correct any tab issues to make it more readable. Click Insert Code Snippet Now your code is formatted in the message field, and you can add any comments that are relevent. If the worksheet set up is important then uploading a screenshot of the worksheet and maybe a description will do in most cases.

tinstaafl
Nearly a Posting Virtuoso
1,323 posts since Jun 2010
Reputation Points: 355
Solved Threads: 228
Skill Endorsements: 14

Perhaps the file is too big. The limit is one meg.

Reverend Jim
Carpe per diem
Moderator
3,599 posts since Aug 2010
Reputation Points: 561
Solved Threads: 446
Skill Endorsements: 32

Okay so here is the code I am trying to use. I have it to where the code will at least look in the sheet but it wont display the results even if found. I am working on finding an inventory solution. This will be coupled with a barcode scanner which I have already worked out. Thank you for your assistance.

Sub Find_First()
    Dim FindString As String
    Dim Rng As Range
    FindString = InputBox("Enter a Search value")
    If Trim(FindString) <> "" Then
        With Sheets("Sheet2").Range("B7:C486")
            Set Rng = .Find(What:=FindString, _
                            After:=.Cells(.Cells.Count), _
                            LookIn:=xlValues, _
                            LookAt:=xlWhole, _
                            SearchOrder:=xlByRows, _
                            SearchDirection:=xlNext, _
                            MatchCase:=False)
            If Not Rng Is Nothing Then
                Application.Goto Rng, True
            Else
                MsgBox "Nothing found"
            End If
        End With
    End If
End Sub
archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I would like it if the results would display in a results window as well.

archangel1177
Newbie Poster
20 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0984 seconds using 2.7MB