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: 9
Default Variable Row Numbers

Hello

Using Excel 2000

Having determined the first row with a blank cell A1 I calculate the first
and last rows which I need to copy to another sheet. see below

When I try to select these rows with Rows("first_row:last_row").Select
the macro fails.

Row = 3
While Cells(Row, 1) < ""
Row = Row + 1
Wend

last_row = Row - 1
first_row = last_row - 11

Rows("first_row:last_row").Select

Any ideas?

Thank you



 
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
Divide variable numbers into groups Marie Bayes Excel Discussion (Misc queries) 2 July 28th 09 06:53 PM
Adding variable range of numbers mwavra Excel Worksheet Functions 6 October 16th 08 04:58 PM
Average the last eight or nine (Variable) numbers in a row. Michael Excel Discussion (Misc queries) 3 December 11th 07 09:55 PM
extracting numbers from variable text JulianActon Excel Discussion (Misc queries) 8 November 7th 05 12:33 AM
Data in variable row numbers... Mourinho Excel Programming 0 October 25th 04 08:31 PM


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