We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Excel Macro Help?
Comments
-
Also it doesn't actually find it if I literally just type in Train. So it really isn't working?Help me to help you :santa2:0
-
Try this:
Private Sub FindButton_Click()
Dim strFindWhat As String
strFindWhat = TextBox1.Text
On Error GoTo ErrorMessage
Sheets("Prices").Activate
ThisWorkbook.Sheets("Prices").Cells.Find(What:=strFindWhat, After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Select
Exit Sub
ErrorMessage:
MsgBox ("The information you have searched does not exist")
End SubCharlie0 -
nope!? Aragh lol
I'll make another print screen, cheers for thisHelp me to help you :santa2:0 -
Help me to help you :santa2:0 -
It works for me! Has a space sneaked into your strFindWhat?Charlie0
-
removed the space and it said compile error : syntax errorHelp me to help you :santa2:0
-
Hold on it turns out there was a space at the end of the look at bit!! It works!!!!!
THANK YOU SOOOO MUCHHelp me to help you :santa2:0 -
THANK YOU THAT IS GREAT!! LOL I'm way too happy about thisHelp me to help you :santa2:0
-
Have you got any other tips or advice to improve the spreadsheets?
How about when I have nothing in the cells but another cell adds up when there is information. Maybe it will be easier explained in a screen print
Help me to help you :santa2:0 -
I have this a lot. Formulas in one cell don't seem to like being lazy! They want information to add up. I remember there is a way to display nothing if there is nothing to add up?Help me to help you :santa2:0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.1K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178K Life & Family
- 260.5K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards