LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default VBA - Row Deletion using If/Then Statement

Ok, the spreadsheet I am working on deals with security identifiers called
CUSIPS. I get a report each month that lists a bunch of security exceptions
by CUSIP that are outside of policy. I have a list of securtity cusips that
are cleared (meaning they are not exceptions), and I have a spreadsheet with
this list in a range. I have tried using the IF function to match the current
report cusips with the cleared list of cusips (to identify which rows of the
report I can delete) but, for some reason, this is not working. Ideally, I
have been trying to generate a macro that will search for the cleared cusips
and automatically delete the row in which it finds the cleared cusip. I have
been trying to use the If, Then, Else statement in VBA, but I am not very
familiar with the object model just yet so writing the program free hand is
causing me a lot of problems.

Instead of trying to give an example of the spreadsheet in this post, it
would be great if I could send it off to someone who might be willing to take
a look at what I am trying to do...Thanks!

Charles
 
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
#Ref! after row deletion Rick Excel Discussion (Misc queries) 3 March 19th 10 04:39 PM
name deletion rk0909 Excel Discussion (Misc queries) 2 January 4th 08 11:03 PM
dup value deletion italiavb Excel Programming 0 February 6th 07 01:14 AM
Bulk row deletion quartz[_2_] Excel Programming 1 November 9th 04 05:00 PM
Row Deletion Dan Excel Programming 3 September 1st 04 10:40 PM


All times are GMT +1. The time now is 01:38 PM.

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"