LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a macro to delete last 4 rows and last 2 columns which vary


I am using Excel to open up an html file from which I then need to
delete various rows and columns. It is always the first 3 rows and
first column. I must always delete the last 4 row and last 2 columns
but the actual row numbers and column letters can vary depending on how
many rows and columns are contained in the html file. I can use
Ctrl+end to go the last cell but this could vary each time the html
file is downloaded. Can anyone tell me the code which would cause a
macro to go to the last cell being used and delete 4 rows and 2 columns
from here.

Thanks

Shirley


--
Shirley Munro
------------------------------------------------------------------------
Shirley Munro's Profile: http://www.excelforum.com/member.php...nfo&userid=836
View this thread: http://www.excelforum.com/showthread...hreadid=401070

 
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
Delete rows with more or less than 7 columns Keith New Users to Excel 8 May 22nd 09 10:26 AM
Sum of columns that vary in position gibsol Excel Worksheet Functions 5 August 17th 06 03:50 PM
Delete columns or rows Ivor Williams Excel Worksheet Functions 2 June 3rd 05 11:16 PM
subtotalling - # of columns vary MDC Excel Programming 1 July 22nd 03 04:43 PM
subtotalling where # of columns vary MC[_2_] Excel Programming 1 July 21st 03 04:17 AM


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