473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need to find cell in column 3, given name of cells in col 1 and 2.

Set rng2 = Sheets("data").Columns("A:A")
Set rng3 = Sheets("data").Columns("B:B")

Set rngFound = rng2.Find(What:=Compij, lookAt:=xlWhole, MatchByte:=False)
If rngFound Is Nothing Then

MsgBox "One compound in this list was not found" & " " & Compij
Exit Sub
End If

Set rngFound2 = rng3.Find(What:=Compij2, After:=cellk, lookAt:=xlWhole, Mathbyte:=False)

I get an error at this last command.
Mar 28 '11 #1
1 1171
Stewart Ross
2,545 Expert Mod 2GB
If what you have posted is accurate - and only you will know this for sure - there is a spelling error in the very last term on your last line:

Mathbyte:=False

should be

Matchbyte:=False

-Stewart
Mar 28 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Andreas Neudecker | last post by:
Hi. I know you can read the filename of a program as sys.argv. But what about modules? Is there a similar way to find out the file name of a module (called by some other module or program) from...
4
by: Steve B. | last post by:
How do I find the column (index) number at runtime of a particular DataGrid column if I know the column header string //somthing like the following int x = datagrid.column;
3
by: DigHazuse | last post by:
relative noob. i'm trying to get/display the column Header name that the user clicks to sort on the DataGrid. I know that i could take the e.SortExpression and spin through the Columns on the...
1
by: Grey | last post by:
How can I get the column header name when user click on the column for sorting purpose?? Million thanks
1
by: DBLWizard | last post by:
Howdy All, I am wondering if there is a way to find the column index by the header name. What I am trying to get away from is using a hardcoded number in the ItemDataBound event. Something...
5
by: SunnyDrake | last post by:
HI! I wrting some program part of it is XML config parser which contains some commands(for flexibility of engenie). how do i more simple(if it possible not via System.Reflection or...
1
by: Erik | last post by:
Is there any way I can get index (position) of a column in an ASP .NET 2.0 GridView by referencing the column's name, either by using the DataField or HeaderText properties? A small code snippet...
1
by: kwokv616 | last post by:
I'm currently working on a project to convert a Foxpro database into Access. How do I lookup a cell value (given row number and column number) and return it to a variable? This is what I want to...
11
jsos20
by: jsos20 | last post by:
a subroutine that creates a file with a given name and outputs the contents of a array to given named file It should be called in the following way: &WriteToFile(``suppliers.txt'', @suppliers);...
2
by: yahshuatwo | last post by:
How can you display an icon the gridview cell column which is dependent on the text value of an adjacent column. Also, I setup the asp template,item and image controls, do i need to set the imgURL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.