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 Copy only Visible Cells of a Variable Range...

Another annoying problem, this one slightly less vexing that the last, but
preventing productivity nonetheless! I have a two workbooks. One
"Control.xls" has all the user interface and coding. The other "Travel.xls"
has all the data. Near the end of my process I filter the dataset to show
only what I want to keep, which is:

Only Visible Cells of Active Area in Columns A:O.

The number of Rows varies and is the part driving me crazy.

I've tried to accomplish this by copying my target range from one sheet to
another, and then moving it back after deleting the data from the first
sheet, but I can't seem to get the data to move from one sheet to another
without setting a fixed range. Any ideas on how to make this work?

Sheets(1).Range("A1:O" & endRow).SpecialCells(xlCellTypeVisible).Copy
destination:=Sheets(2).Range(CellRegion).PasteSpec ial(Paste:=xlValues,
Operation:=xlNone, SkipBlanks:=False, Transpose:=False)
 
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 Visible Cells in Sheet with Merged and Hidden Cells rtwiss Excel Discussion (Misc queries) 5 April 25th 23 09:08 AM
copy visible cells Sunny Excel Worksheet Functions 1 December 29th 08 06:27 PM
Copy/Paste Visible cells only Ashley Excel Discussion (Misc queries) 1 October 17th 06 09:17 PM
Copy visible cells only Nethie Excel Discussion (Misc queries) 1 October 13th 05 09:31 PM
Copy on visible cells only ... Sige Excel Programming 1 May 26th 05 04:49 PM


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