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

You're right...I don't need VBA...My knowledge of Excel keeps growing day by
day...those advanced filters are very helpful...I appreciate the responses!!!
Thanks...

Charles

"Andy Smith" wrote:

You don't need VBA. You've set up two worksheets, the input CUSIPS (which
might have bad ones), and the cleared CUSIPS, so here's what to do:

1. Make sure there are column headings on both sheets, and that the CUSIP
heading is the same on both.

2. Select the whole input range -- the CUSIPS and any additional columns,
with headings -- and do Data/Filter/Advanced.

3. Set the Criteria range to be the one column of cleared CUSIPS, again with
the heading.

4. Choose Filter In Place, click OK, and that will hide the bad ones.

5. To reveal them all again (since the list of cleared ones will change), do
Data / Filter / Show All.

--
* Please click Yes if this was helpful *
Andy Smith
Senior Systems Analyst
Standard and Poor''s, NYC



"CJLuke" wrote:

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

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
#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 02:56 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"