#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Excel

how can I flow cells that are not blank to a second
worksheet

Thanks
Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
pk pk is offline
external usenet poster
 
Posts: 27
Default Excel

I'm not sure I understand exactly what you want to do,
but the following will literally copy every filled cell
on the active sheet into column "A" of "Sheet2" (note
that the third and fourth lines should be written on one
line in the module):

For Each cell In ActiveSheet.UsedRange.Cells
If cell.FormulaR1C1 < "" Then
cell.Copy Destination:=Sheets("Sheet2").Range
("A65536").End(xlUp).Offset(1, 0)
End If
Next cell

Hope this helps...

-----Original Message-----
how can I flow cells that are not blank to a second
worksheet

Thanks
Jim
.

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



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