Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Duplicates across tabs

Ok, have a little problem I need some help on.

I've look at pearson's site, but didn't see anything that would wor
for me (if I'm wrong, please point me in the right direction)

I have 2 worksheets. I need to look compare column H from the firs
worksheet with Column A of the second worksheet and check fo
duplicates.

What I need is that if the any text in column H on the first workshee
matches any text in column A of the second worksheet, need to selec
the row from the first worksheet that contians that duplicate.

Thanks in advance

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Duplicates across tabs

Hi Stevem;

You can use this;

Sub TryCompare()
Sheets("Sheet1").Select
HomeSheet = activeworksheet.Name
Cells(1, 1).Select
Sheets("Sheet2").Select
OtherSheet = ActiveSheet.Name
Cells(1, 8).Select

Sheets(HomeSheet).Select

While Not ActiveCell = ""

MyTextToLookFor = ActiveCell
Sheets(OtherSheet).Select
Cells(1, 8).Select
Do While Not ActiveCell = ""
If Trim(ActiveCell) = Trim(MyTextToLookFor)
Then
'here is where you copy the line and put
it somewhere
ActiveCell.EntireRow.Copy
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Wend

ActiveCell.Offset(1, 0).Select
Wend
End Sub

Thanks,

Greg
-----Original Message-----
Ok, have a little problem I need some help on.

I've look at pearson's site, but didn't see anything that

would work
for me (if I'm wrong, please point me in the right

direction)

I have 2 worksheets. I need to look compare column H from

the first
worksheet with Column A of the second worksheet and check

for
duplicates.

What I need is that if the any text in column H on the

first worksheet
matches any text in column A of the second worksheet,

need to select
the row from the first worksheet that contians that

duplicate.

Thanks in advance.


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Duplicates across tabs

Sorry, that code didn't work, compile errors, and I couldn't fix i
myself.

Opened a new thread with better explanation (I hope)

Thanks for the help though, it did get me thinking, and got my brai
back into the Excel mode of things.

--
Message posted from http://www.ExcelForum.com

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
How do I alphabetize the tabs on a spreadsheet with 25 tabs? Anita Excel Worksheet Functions 0 May 27th 10 10:01 PM
sheet tabs is checked but I can't see my tabs 3091Director Excel Discussion (Misc queries) 2 March 15th 10 03:46 AM
tabs are missing even though 'tools-options-view-sheet tabs' ok? rgranell Excel Worksheet Functions 3 August 16th 08 04:25 PM
Duplicates in excel that aren't 100% DUPLICATES ... [email protected] Excel Discussion (Misc queries) 4 May 2nd 08 06:43 PM
hide tabs from view then lock tabs? slowboat Excel Discussion (Misc queries) 1 December 19th 07 07:06 AM


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