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


Hi guys,

I have a list of contacts, including email addresses.

I have a list of email addresses (seperate from the main list) which
want to delete from the main list, due to being out of date. Obviously
want to remove these emails from the main list.

Is there a macro that i can use which will delete the values from on
colum in one sheet if they exist in another colum in another sheet??

Cheers

--
blande
-----------------------------------------------------------------------
blander's Profile: http://www.excelforum.com/member.php...fo&userid=3648
View this thread: http://www.excelforum.com/showthread.php?threadid=56657

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Deleting data


For i = Cells(Rows.Count,"A").End(xlUp).Row To 1 Step -1
If Not IsError(Appliction.Match(Cells(I,"A").Value,
Sheet2!Columns(1),0)) Then
Rows(i).Delete
End If
Next i

chnge the columns to suit

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"blander" wrote in
message ...

Hi guys,

I have a list of contacts, including email addresses.

I have a list of email addresses (seperate from the main list) which i
want to delete from the main list, due to being out of date. Obviously i
want to remove these emails from the main list.

Is there a macro that i can use which will delete the values from one
colum in one sheet if they exist in another colum in another sheet??

Cheers,


--
blander
------------------------------------------------------------------------
blander's Profile:

http://www.excelforum.com/member.php...o&userid=36486
View this thread: http://www.excelforum.com/showthread...hreadid=566578



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting data


Cheers, thankyou :)


--
blander
------------------------------------------------------------------------
blander's Profile: http://www.excelforum.com/member.php...o&userid=36486
View this thread: http://www.excelforum.com/showthread...hreadid=566578

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
Fetching data and deleting original data prem New Users to Excel 3 January 10th 09 02:56 AM
MS2007 - deleting filtered data, deletes non-visible data too Nita Excel Discussion (Misc queries) 1 December 9th 08 03:42 PM
Deleting data chucksatt Excel Worksheet Functions 1 August 11th 08 02:08 AM
Deleting cell data without deleting formula Tom Hall Excel Discussion (Misc queries) 4 October 29th 06 04:07 PM
moving data in excel without deleting existing data jigna Excel Discussion (Misc queries) 1 January 30th 05 11:35 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"