#1   Report Post  
Jeff
 
Posts: n/a
Default VBA Cell.find

Hello,

I need to design a VBA macro that would find "paid" in Column A and would
select in value in column H.
Ex:
Column A Column H
Paid $100.00
I need to select the $100.00
Regards


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
why not use application.vlookup?

--
Regards
Frank Kabel
Frankfurt, Germany

Jeff wrote:
Hello,

I need to design a VBA macro that would find "paid" in Column A and
would select in value in column H.
Ex:
Column A Column H
Paid $100.00
I need to select the $100.00
Regards



  #3   Report Post  
Jeff
 
Posts: n/a
Default

Hi,
Technically, I'm going to use that worksheet that requires numbers not
formulas to be intergrated in a SAP application.
So I need a number.
Regards,

"Frank Kabel" wrote:

Hi
why not use application.vlookup?

--
Regards
Frank Kabel
Frankfurt, Germany

Jeff wrote:
Hello,

I need to design a VBA macro that would find "paid" in Column A and
would select in value in column H.
Ex:
Column A Column H
Paid $100.00
I need to select the $100.00
Regards




  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Record a macro when you do it once manually -- to get the settings correct for
the Find.

Option Explicit
Sub testme()

Dim FoundCell As Range
Dim FindWhat As String

FindWhat = "Paid"
With Worksheets("sheet1")
With .Range("a:a")
Set FoundCell = .Cells.Find(What:=FindWhat, _
After:=.Cells(.Cells.Count), _
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False)
End With
End With

If FoundCell Is Nothing Then
MsgBox FindWhat & " wasn't found"
Else
Application.Goto FoundCell.Offset(0, 1)
End If

End Sub

I looked at xlPart and matchcase=false. Modify it as you need.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Jeff wrote:

Hello,

I need to design a VBA macro that would find "paid" in Column A and would
select in value in column H.
Ex:
Column A Column H
Paid $100.00
I need to select the $100.00
Regards


--

Dave Peterson
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
Cell.Find in VBA Jeff Excel Discussion (Misc queries) 3 December 2nd 04 07:30 PM


All times are GMT +1. The time now is 12:58 PM.

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"