Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default I don't want to use Send key

Hi, I have monthly report that arrives to my e-mail, my problem is that in
this report I have in column A the numbers from 1 to 65,000 and in columns B,
C, D, E,F, and G (where I have the records of sales amounts and other datas)
the records
my problem is that the number of rows used are aprx 3000 (depends on each
month) and althought there is just 3000 rows used the entire column A is
numered, how to make a macro to delete de other 62000 rows that arn't used??

PD. With out sendkeys

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default I don't want to use Send key

Give this a try...

Sub DeleteExtraRows()
Dim wks As Worksheet

Set wks = Sheets("Sheet1")
wks.Range("B65536", wks.Range("B65536").End(xlUp).Offset(1,
0)).EntireRow.Delete
End Sub

--
HTH...

Jim Thomlinson


"filo666" wrote:

Hi, I have monthly report that arrives to my e-mail, my problem is that in
this report I have in column A the numbers from 1 to 65,000 and in columns B,
C, D, E,F, and G (where I have the records of sales amounts and other datas)
the records
my problem is that the number of rows used are aprx 3000 (depends on each
month) and althought there is just 3000 rows used the entire column A is
numered, how to make a macro to delete de other 62000 rows that arn't used??

PD. With out sendkeys

TIA

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
Excel 2003 giving annoying "Send/Don't Send" error when closing BigDaddyCool Excel Discussion (Misc queries) 0 January 29th 10 02:31 AM
Net Send to many Tazflerts Excel Discussion (Misc queries) 1 November 22nd 09 04:21 AM
Bypass: A program is trying to send mail using Item.Send prompt Vick Excel Discussion (Misc queries) 1 June 25th 09 03:31 AM
My send to in excel/word does not offer send as attachment Mstink Excel Discussion (Misc queries) 11 March 16th 06 02:49 PM
Before Send Tom Ogilvy Excel Programming 0 July 8th 03 02:41 PM


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