#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Last cell in table

Hi all,

A set of data is given to me, and I'm working on a macro which gives this
table a better format. In the last row of the table you can find the total
for a couple of columns This row is not always the same depending on the
volume of information given in the table. Is there a way to identify these
cells or the row with the macro and delete them?

Thank you in advance!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Last cell in table

Maybe.

Can you pick out a column that contains that Total label?

I'm gonna use column A.

Dim LastRow as long
with worksheets("sheet9999")
lastrow = .cells(.rows.count,"A").end(xlup).row
.rows(lastrow).delete
end with


Martincito23 wrote:

Hi all,

A set of data is given to me, and I'm working on a macro which gives this
table a better format. In the last row of the table you can find the total
for a couple of columns This row is not always the same depending on the
volume of information given in the table. Is there a way to identify these
cells or the row with the macro and delete them?

Thank you in advance!!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Last cell in table

This works perfect!
Thank you very much for your help, Dave!

"Dave Peterson" wrote:

Maybe.

Can you pick out a column that contains that Total label?

I'm gonna use column A.

Dim LastRow as long
with worksheets("sheet9999")
lastrow = .cells(.rows.count,"A").end(xlup).row
.rows(lastrow).delete
end with


Martincito23 wrote:

Hi all,

A set of data is given to me, and I'm working on a macro which gives this
table a better format. In the last row of the table you can find the total
for a couple of columns This row is not always the same depending on the
volume of information given in the table. Is there a way to identify these
cells or the row with the macro and delete them?

Thank you in advance!!


--

Dave Peterson

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
How do I link a cell outside a pivot table to one inside the table GPGTDRVR Excel Discussion (Misc queries) 3 August 17th 06 02:45 AM
Input Cell in One variable data table Dottore Magistrale Excel Worksheet Functions 0 August 30th 05 06:25 PM
Paste from Word table so that 1 table cell = 1 Excel cell Dave G Excel Discussion (Misc queries) 4 June 17th 05 12:16 AM
Pasting Word table cell with paragraph markers into single Excel c Steve Excel Discussion (Misc queries) 1 June 16th 05 11:26 PM
Input cell on Data Table will not work Sarah Bee Excel Discussion (Misc queries) 4 May 26th 05 12:51 AM


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