Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Writing a Macro to Find & Delete Target Rows in a Range

Hi everybody,
I am working on a macro to help automate some of the tasks being done to a
group of spreadsheets that are updated often. I can email a dummy workbook to
illustrate what I am talking about if necessary, just let me know.
My workbook contains 2 ranges of data, the first contains a table of values
and within this table are the target rows. This first range varies in size
both in number of Rows and Columns which is where I am having one of two hang
ups.
The second Range is located to the right of the first range and is always 3
columns wide. Its number of rows is variable and can be as long as the first
range but not longer. The two ranges are separated by 2 blank columns,(for
example Range 1:(A6:J45) Range 2:(M6:O32)), and both start on row 6.

What I would like the macro to do is this. Search through the "B" column of
the first range to find a target row by finding the cells with "TargetValue1"
and "TargetValue2". Once a target row is detected I would like to delete the
Row ut only within the first range, and Shift the Cells Up.


Thank you all for any guidance,
Dan



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
find and delete rows macro clayton ledford Excel Discussion (Misc queries) 4 January 20th 09 03:34 PM
writing a macro to delete all rows after a certain value Xman019 Excel Programming 3 May 16th 07 03:17 PM
delete rows in range - macro hindu cliparts Excel Worksheet Functions 0 November 16th 06 09:54 PM
Macro to find and delete rows! Heather O'Malley Excel Discussion (Misc queries) 2 April 12th 06 01:53 PM
macro to find something in column A and delete 5 rows below it vikram Excel Programming 1 April 30th 04 12:04 PM


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