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

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Deleting Rows with String Values

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Deleting Rows with String Values

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
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
Deleting rows based on column values Dazed and Confused[_2_] New Users to Excel 3 February 6th 09 10:47 PM
Deleting rows with specific values whatzzup Excel Discussion (Misc queries) 1 July 6th 06 10:35 AM
Deleting rows not containing one of 3 values Byron[_5_] Excel Programming 2 October 30th 05 09:45 PM
Deleting Rows with Same Values ...Patrick[_5_] Excel Programming 0 September 8th 04 09:06 PM
Deleting Rows beased on Values Todd Huttenstine[_2_] Excel Programming 6 December 2nd 03 05:40 AM


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