Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

VBA Code for FIND values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DaveM - 30 May 2008 12:12 GMT
Hi

What I'm looking for is the VBA code to FIND the content of cell F8 sheet1.

Basically I've been trying paste cell F8 into EDIT FIND, "This cell value
changes sometimes"

Hope I've been clear in my question.

Thanks in advance

Dave
NateBuckley - 30 May 2008 12:24 GMT
Sub findF8()
   Dim a As Variant
   a = Worksheets("Sheet1").Cells(8, 6).Value
   MsgBox a
End Sub

Is that what you wanted?

> Hi
>
[quoted text clipped - 8 lines]
>
> Dave
DaveM - 30 May 2008 13:05 GMT
Hi Nate

Apologizes I should of been a little clearer

With no message

And to find value in Sheet2 Column A would be nice.

Thanks in advance

Dave

> Sub findF8()
>    Dim a As Variant
[quoted text clipped - 17 lines]
>>
>> Dave
Don Guillett - 30 May 2008 13:22 GMT
A simplified way
Sub findbasedoncell()
mr = Columns(1).Find(Range("e8")).Row
MsgBox mr
End Sub

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Hi
>
[quoted text clipped - 9 lines]
>
> Dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.