LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How to detirmine the target row

Hi
make sure that both names really exist. Sound like either SI_InvNo or
INVOICE1 is not defined

--
Regards
Frank Kabel
Frankfurt, Germany


Minitman wrote:
Hey Frank,

I can't get the code to work!

I keep getting

Run-time error '1004':
Method 'Range' of object '_Worksheet' failed

Debug highlighted this whole row:
row_number= application.worksheetfunction. _
match(Range("SI_InvNo"),range("Invoice1"),0)

Any idea as to what is going on?

TIA

-Minitman



On Wed, 14 Apr 2004 14:30:54 -0500, Minitman


wrote:

Thanks Frank.

That is what I was looking for. I had a bit of trouble getting

Excel
help to come up with anything on "match", until I tried "MATCH" then
it came up.

-Minitman

On Wed, 14 Apr 2004 21:01:30 +0200, "Frank Kabel"
wrote:

Hi
do you want a VBA solution or a worksheet function. For the first
one add the line in your code. So use something like

sub foo()
Dim row_number 'this is a variable
row_number= application.worksheetfunction. _
match(Range("SI_InvNo"),range("Invoice1"),0)
msgbox row_number
end sub

the '0' idnicates that Match shoud look for an exact match (see the
Excel help for more about the MATCH function syntax)


 
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
only a certain text from a target col Narnimar Excel Discussion (Misc queries) 0 April 6th 10 07:13 PM
Target.Value lehigh46 Excel Worksheet Functions 2 April 1st 08 01:01 PM
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
target.value Curt Excel Discussion (Misc queries) 7 April 21st 07 02:30 AM
Target Param Excel Worksheet Functions 1 March 16th 06 08:13 PM


All times are GMT +1. The time now is 07:20 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"