#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sportsbarn
 
Posts: n/a
Default Writing Macros

I am having troubles deleting below a certain point when writing macros using
seperate worksheets with varying data amounts.

Is there a way to identify a non-specific point? Instead of a cell specific
point when writing the code, ie (A203:A205)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Writing Macros

Maybe this line in your code will help......

Range("A203:A205").ClearContents

Vaya con Dios,
Chuck, CABGx3



"sportsbarn" wrote:

I am having troubles deleting below a certain point when writing macros using
seperate worksheets with varying data amounts.

Is there a way to identify a non-specific point? Instead of a cell specific
point when writing the code, ie (A203:A205)?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Scoops
 
Posts: n/a
Default Writing Macros

Hi sportsbarn

Not entirely sure what you're after but:

LastRow = Range("A65536").End(xlup).Row

will give you the last used row in column A.

Always delete from bottom to top.

Regards

Steve

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 run excel 4.0 macros on excel 2000 RodolfoDallas Excel Discussion (Misc queries) 1 March 12th 06 03:14 AM
Excel crashes while opening excel file imbeddied with macros ct2147 Excel Discussion (Misc queries) 0 December 30th 05 09:05 PM
Need help writing basic macros in EXCEL.. Macro Help Excel Discussion (Misc queries) 1 March 8th 05 02:28 PM
Books on writing Macros JC Excel Discussion (Misc queries) 1 January 29th 05 11:45 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM


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