ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Union Statement Question (https://www.excelbanter.com/excel-programming/377067-union-statement-question.html)

Barb Reinhardt

Union Statement Question
 
How do I write the Union statement for the union of range "r" and the
cell(r.row,r.column+1)

Thanks

Jay

Union Statement Question
 
Try this; it should work assuming that "r" is a range variable that has
already been set.

Set u_r = Application.Union(r, Cells(r.Row, r.Column + 1))

--
Jay


"Barb Reinhardt" wrote:

How do I write the Union statement for the union of range "r" and the
cell(r.row,r.column+1)

Thanks



All times are GMT +1. The time now is 03:18 PM.

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