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

Hi,

I am currently using User Forms within Excel to enable the user to mov
around quicker and easier and I would like to include a function wher
the user can delete information. The information which is being delete
is located within the Excel spreadsheet however, I am unsure what the
will decide to delete. I intend to use the "Find" Function to provid
this facility but whenever this function is activated you are require
to enter in what you are looking for.

Is there anyway in which I can have a text box to enter in th
information, click onto a macro which will automatically locate th
information that was entered into the text box?

I think that it is to do with Strings but not 100% sure.

If someone could aide me in my quest I would appreciate it.
Many Thanks
Kiz

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Find Function

Sure you can.

Define a button that will trigger the action on the userform, and add this
type of code to it

findVal = Textbox1.Text
Set oCell = Worksheets("Sheet1").Range("A1:A100"). Find _
(findVal)
If Not OCell Is Nothing Then
oCell.EntireRow.Delete
Set oCell = Nothing
End If

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"kiza " wrote in message
...
Hi,

I am currently using User Forms within Excel to enable the user to move
around quicker and easier and I would like to include a function where
the user can delete information. The information which is being deleted
is located within the Excel spreadsheet however, I am unsure what they
will decide to delete. I intend to use the "Find" Function to provide
this facility but whenever this function is activated you are required
to enter in what you are looking for.

Is there anyway in which I can have a text box to enter in the
information, click onto a macro which will automatically locate the
information that was entered into the text box?

I think that it is to do with Strings but not 100% sure.

If someone could aide me in my quest I would appreciate it.
Many Thanks
Kiza


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find Function

Bob,

Thanks for the help. Just what the doctor ordered.

Cheers

--
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
Trying to find which function to use J4shaw Excel Worksheet Functions 3 August 3rd 09 05:58 AM
Find function?? SeniorJosie Excel Worksheet Functions 3 June 1st 09 09:29 PM
Find Function VickiMc Excel Worksheet Functions 1 February 12th 09 02:31 AM
Find Function Steve Excel Worksheet Functions 2 May 11th 05 07:56 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


All times are GMT +1. The time now is 03:47 AM.

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

About Us

"It's about Microsoft Excel"