ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying only cells with data in them (https://www.excelbanter.com/excel-programming/416185-copying-only-cells-data-them.html)

JK192503

Copying only cells with data in them
 
I am trying to figure out a way to write a code that will select and copy
only those cells within a selected range that have data in them, and to
suppress those that are empty.

The information will eventually be "paste-special-ed" into a word document,
such that automatic updating is possible.

I'd appreciate any ideas anyone might have.

Thanks!

Rick Rothstein \(MVP - VB\)[_2674_]

Copying only cells with data in them
 
You might need to clarify your request a little. This selection... is a
column or a row only? If not (that is, if it is rectangular in shape and
more than one row high and more than one column wide), how is the copy to
take place if you want to eliminate empty CELLS only (that is, how is data
"collapsed" to fill in the blanks)? Or did you mean "rows" when you said
"cells"?

Rick


"JK192503" wrote in message
...
I am trying to figure out a way to write a code that will select and copy
only those cells within a selected range that have data in them, and to
suppress those that are empty.

The information will eventually be "paste-special-ed" into a word
document,
such that automatic updating is possible.

I'd appreciate any ideas anyone might have.

Thanks!




All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com