Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default VB for Deleting Rows in Excel

Can some one show me how to write a code that will delete rows from column A
that has either one of the following in the rows/cells: Application, Count or
Sum

Thank you!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default VB for Deleting Rows in Excel

Hi carolini

Start here
http://www.rondebruin.nl/delete.htm

If you need more help post back


--
Regards Ron de Bruin
http://www.rondebruin.nl


"carolini" wrote in message ...
Can some one show me how to write a code that will delete rows from column A
that has either one of the following in the rows/cells: Application, Count or
Sum

Thank you!!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default VB for Deleting Rows in Excel

Wow, this helped! though how can I get to to begin at a specific row ex. A5?

"Ron de Bruin" wrote:

Hi carolini

Start here
http://www.rondebruin.nl/delete.htm

If you need more help post back


--
Regards Ron de Bruin
http://www.rondebruin.nl


"carolini" wrote in message ...
Can some one show me how to write a code that will delete rows from column A
that has either one of the following in the rows/cells: Application, Count or
Sum

Thank you!!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default VB for Deleting Rows in Excel

Hi carolini

You see I have 3 example macro's on that page

Sub Example1()
Sub Example2()
Sub Example3()

1) Loop through all the rows in the UsedRange (this is the first row with data till the last row with data on your sheet)
It can be slower if the column that you check doesn't use so many rows or if your UsedRange is bigger then you data.
you can find more information on Debra Dalgleish's Web Site about this http://www.contextures.on.ca/xlfaqApp.html#Unused
2) You can fill in the StartRow and the EndRow yourself.
3) You can fill in the StartRow and the code will find the last row with data in the column that you want to check.



--
Regards Ron de Bruin
http://www.rondebruin.nl


"carolini" wrote in message ...
Wow, this helped! though how can I get to to begin at a specific row ex. A5?

"Ron de Bruin" wrote:

Hi carolini

Start here
http://www.rondebruin.nl/delete.htm

If you need more help post back


--
Regards Ron de Bruin
http://www.rondebruin.nl


"carolini" wrote in message ...
Can some one show me how to write a code that will delete rows from column A
that has either one of the following in the rows/cells: Application, Count or
Sum

Thank you!!






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VB for Deleting Rows in Excel

Set StartRow to 5 not 1 as in Ron's examples.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"carolini" wrote in message
...
Wow, this helped! though how can I get to to begin at a specific row ex.

A5?

"Ron de Bruin" wrote:

Hi carolini

Start here
http://www.rondebruin.nl/delete.htm

If you need more help post back


--
Regards Ron de Bruin
http://www.rondebruin.nl


"carolini" wrote in message

...
Can some one show me how to write a code that will delete rows from

column A
that has either one of the following in the rows/cells: Application,

Count or
Sum

Thank you!!








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default VB for Deleting Rows in Excel

Thank you!!

"carolini" wrote:

Can some one show me how to write a code that will delete rows from column A
that has either one of the following in the rows/cells: Application, Count or
Sum

Thank you!!

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
Inserting and Deleting Rows in Excel ttonkel Excel Worksheet Functions 2 March 7th 09 03:06 PM
Deleting filtered rows in Excel RajeevAsthana Excel Discussion (Misc queries) 1 December 6th 07 03:37 PM
Deleting Rows in MS Excel MacK Excel Discussion (Misc queries) 9 July 30th 07 06:24 PM
Deleting Rows in Excel 2003 Gilbert Excel Discussion (Misc queries) 3 March 16th 07 01:44 AM
deleting rows in excel nick80 Excel Programming 2 November 28th 03 02:51 PM


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