PC Review


Reply
Thread Tools Rate Thread

Check a 'Logsheet' for a match, before continuing a sub

 
 
SS
Guest
Posts: n/a
 
      29th Nov 2011
Hi,
I want to run an operation, but, this may have already been done, so i
need to notify user of that and not run again.

Specifically:
I need to search the 'Entry Log' sheet (columns A and B) for the word
'Enzyme' in column A, and a specific six digit number in column B (the
number is already defined as variable req1). These two entries must
be found adjascent to each other, in order for the find/match to be
true.

Example:
req1 is currently 123456

So, in order for my macro to continue, I want to search the sheet
'Entry Log' for the word 'Enzyme' in column A and 123456 in column B
(adjascent). If it does not find, the macro continues. If it does
find that match, say in range A26:B26, then a message to user appears
that data has already been entered, etc... and then exits.

Note: The Entry Log sheet Column A will have either the word Enzyme,
or Strip, or Error. Column B will have many different six digit
numbers.

Thanks for any assistance,
Steve
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      30th Nov 2011
Add a third column containing the text in columns A and B.
"= A1 & B1" and fill down.
Do your search in the third column.
'---
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
(Lottery Numbers.xls in the free folder)




"SS" <(E-Mail Removed)>
wrote in message
news:f0daf10a-1c78-4dde-917b-(E-Mail Removed)...
> Hi,
> I want to run an operation, but, this may have already been done, so i
> need to notify user of that and not run again.
>
> Specifically:
> I need to search the 'Entry Log' sheet (columns A and B) for the word
> 'Enzyme' in column A, and a specific six digit number in column B (the
> number is already defined as variable req1). These two entries must
> be found adjascent to each other, in order for the find/match to be
> true.
>
> Example:
> req1 is currently 123456
>
> So, in order for my macro to continue, I want to search the sheet
> 'Entry Log' for the word 'Enzyme' in column A and 123456 in column B
> (adjascent). If it does not find, the macro continues. If it does
> find that match, say in range A26:B26, then a message to user appears
> that data has already been entered, etc... and then exits.
>
> Note: The Entry Log sheet Column A will have either the word Enzyme,
> or Strip, or Error. Column B will have many different six digit
> numbers.
>
> Thanks for any assistance,
> Steve



 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      30th Nov 2011
On Nov 29, 7:53*pm, "Jim Cone" <james.cone...@comcast.netXxx> wrote:
> Add a third column containing the text in columns A and B.
> "= A1 & B1" and fill down.
> Do your search in the third column.
> '---
> Jim Cone
> Portland, Oregon USAhttp://www.mediafire.com/PrimitiveSoftware
> (Lottery Numbers.xls in the free folder)
>
> "SS" <snyder...@gmail.com>
> wrote in messagenews:f0daf10a-1c78-4dde-917b-(E-Mail Removed)...
>
>
>
> > Hi,
> > I want to run an operation, but, this may have already been done, so i
> > need to notify user of that and not run again.

>
> > Specifically:
> > I need to search the 'Entry Log' sheet (columns A and B) for the word
> > 'Enzyme' in column A, and a specific six digit number in column B (the
> > number is already defined as variable req1). *These two entries must
> > be found adjascent to each other, in order for the find/match to be
> > true.

>
> > Example:
> > req1 is currently 123456

>
> > So, in order for my macro to continue, I want to search the sheet
> > 'Entry Log' for the word 'Enzyme' in column A and 123456 in column B
> > (adjascent). *If it does not find, the macro continues. *If it does
> > find that match, say in range A26:B26, then a message to user appears
> > that data has already been entered, etc... and then exits.

>
> > Note: The Entry Log sheet Column A will have either the word Enzyme,
> > or Strip, or Error. *Column B will have many different six digit
> > numbers.

>
> > Thanks for any assistance,
> > Steve- Hide quoted text -

>
> - Show quoted text -


Well, you're a genious!!
Worked great, Thanks!!
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      30th Nov 2011
You are welcome.
'---
Jim Cone
Portland, Oregon USA



"SS" <(E-Mail Removed)>
wrote in message
news:6790e286-c55a-4ba1-920c-(E-Mail Removed)...
On Nov 29, 7:53 pm, "Jim Cone"
<james.cone...@comcast.netXxx> wrote:

> Add a third column containing the text in columns A and B.
> "= A1 & B1" and fill down.
> Do your search in the third column.
> '---
> Jim Cone
> Portland, Oregon USA
> http://www.mediafire.com/PrimitiveSoftware
> (Lottery Numbers.xls in the free folder)




> "SS" <snyder...@gmail.com>
> wrote in messagenews:f0daf10a-1c78-4dde-917b-(E-Mail Removed)...
> > Hi,
> > I want to run an operation, but, this may have already been done, so i
> > need to notify user of that and not run again.

>
> > Specifically:
> > I need to search the 'Entry Log' sheet (columns A and B) for the word
> > 'Enzyme' in column A, and a specific six digit number in column B (the
> > number is already defined as variable req1). These two entries must
> > be found adjascent to each other, in order for the find/match to be
> > true.

>
> > Example:
> > req1 is currently 123456

>
> > So, in order for my macro to continue, I want to search the sheet
> > 'Entry Log' for the word 'Enzyme' in column A and 123456 in column B
> > (adjascent). If it does not find, the macro continues. If it does
> > find that match, say in range A26:B26, then a message to user appears
> > that data has already been entered, etc... and then exits.

>
> > Note: The Entry Log sheet Column A will have either the word Enzyme,
> > or Strip, or Error. Column B will have many different six digit
> > numbers.

>
> > Thanks for any assistance,
> > Steve- Hide quoted text -

>
> - Show quoted text -


Well, you're a genious!!
Worked great, Thanks!!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


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