Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy Until Blank

I have a sheet where the number of rows may vary in a
range, I need to copy this range to another sheet. But I
cannot find any function that will give me the first empty
row in a range, or empty cell in a column.

Any help would be appreciated.

Thanks
Alec
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Copy Until Blank

Activesheet.UsedRange.Copy

Mike
"Alec" wrote in message
...
I have a sheet where the number of rows may vary in a
range, I need to copy this range to another sheet. But I
cannot find any function that will give me the first empty
row in a range, or empty cell in a column.

Any help would be appreciated.

Thanks
Alec



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy Until Blank

Thanks for your reply Mike:

However I do not want to copy the whole used range, but a
number columns within that range.


-----Original Message-----
Activesheet.UsedRange.Copy

Mike
"Alec" wrote in

message
...
I have a sheet where the number of rows may vary in a
range, I need to copy this range to another sheet. But I
cannot find any function that will give me the first

empty
row in a range, or empty cell in a column.

Any help would be appreciated.

Thanks
Alec



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Copy Until Blank


Does this help?

x=cells(65536,"a").end(xldown).row
y=cells(1,"IV").end(xltoright).column

"Alec" wrote in message
...
I have a sheet where the number of rows may vary in a
range, I need to copy this range to another sheet. But I
cannot find any function that will give me the first empty
row in a range, or empty cell in a column.

Any help would be appreciated.

Thanks
Alec



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy Until Blank

Thanks Don;

The End statement works fine.




-----Original Message-----

Does this help?

x=cells(65536,"a").end(xldown).row
y=cells(1,"IV").end(xltoright).column

"Alec" wrote in

message
...
I have a sheet where the number of rows may vary in a
range, I need to copy this range to another sheet. But I
cannot find any function that will give me the first

empty
row in a range, or empty cell in a column.

Any help would be appreciated.

Thanks
Alec



.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Copy Until Blank

Actually, the y one is incorrect
y=cells(1,"IV").end(xltoright).column
y=cells(1,"IV").end(xltoLEFT).column

OR
y=cells(1,1).end(xltoright).column


"Alec" wrote in message
...
Thanks Don;

The End statement works fine.




-----Original Message-----

Does this help?

x=cells(65536,"a").end(xldown).row
y=cells(1,"IV").end(xltoright).column

"Alec" wrote in

message
...
I have a sheet where the number of rows may vary in a
range, I need to copy this range to another sheet. But I
cannot find any function that will give me the first

empty
row in a range, or empty cell in a column.

Any help would be appreciated.

Thanks
Alec



.



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
Copy, next blank row? Richard Excel Worksheet Functions 3 March 26th 08 01:21 AM
how to copy blank cells Careeranalysts Excel Discussion (Misc queries) 2 August 24th 07 03:38 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. QUEST41067 Excel Discussion (Misc queries) 1 January 15th 05 09:29 PM
copy blank cells Vicneswari Murugan Excel Discussion (Misc queries) 1 December 1st 04 02:12 PM
copy blank cells Vicneswari Murugan Excel Discussion (Misc queries) 0 December 1st 04 03:33 AM


All times are GMT +1. The time now is 05:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"