PC Review


Reply
Thread Tools Rate Thread

Deleting Rows with String Values

 
 
=?Utf-8?B?U2NhcHM=?=
Guest
Posts: n/a
 
      2nd Oct 2006
I created a macro to sort my worksheet by using the record macro function in
excel. When the macro executed it left rows that I do not need, most of it
are the titles and subtitles and are distributed to different columns and
rows. I want to removed this rows so that all is left is the data I sorted
out. Can someone help creat an addition to the macro I created to delete the
rows that contain this strings.
--
scaps
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      2nd Oct 2006
You need to post the code you have.

"Scaps" wrote:

> I created a macro to sort my worksheet by using the record macro function in
> excel. When the macro executed it left rows that I do not need, most of it
> are the titles and subtitles and are distributed to different columns and
> rows. I want to removed this rows so that all is left is the data I sorted
> out. Can someone help creat an addition to the macro I created to delete the
> rows that contain this strings.
> --
> scaps

 
Reply With Quote
 
=?Utf-8?B?U2NhcHM=?=
Guest
Posts: n/a
 
      3rd Oct 2006
Here is the code.

Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Key2:=Range("B1") _
, Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal,
DataOption2 _
:=xlSortNormal
--
scaps


"JLGWhiz" wrote:

> You need to post the code you have.
>
> "Scaps" wrote:
>
> > I created a macro to sort my worksheet by using the record macro function in
> > excel. When the macro executed it left rows that I do not need, most of it
> > are the titles and subtitles and are distributed to different columns and
> > rows. I want to removed this rows so that all is left is the data I sorted
> > out. Can someone help creat an addition to the macro I created to delete the
> > rows that contain this strings.
> > --
> > scaps

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code deleting everything not just rows with specified values. Please help. Mitchell_Collen via OfficeKB.com Microsoft Excel Programming 4 16th Oct 2007 05:00 PM
Deleting rows with specific values =?Utf-8?B?d2hhdHp6dXA=?= Microsoft Excel Misc 1 6th Jul 2006 10:35 AM
Deleting rows not containing one of 3 values =?Utf-8?B?Qnlyb24=?= Microsoft Excel Programming 2 30th Oct 2005 09:45 PM
Re: Deleting Rows with Same Values ...Patrick Microsoft Excel Programming 0 8th Sep 2004 09:06 PM
Deleting rows with certain values in a column kfo Microsoft Excel Misc 1 11th Dec 2003 02:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:29 PM.