ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   formula copy question (https://www.excelbanter.com/excel-programming/373058-formula-copy-question.html)

Gary Keramidas

formula copy question
 
what's the best way to copy a non-contiguous row of formulas one row below it.

for example, A10, c10, e10:h10

so they end up in row 11

i tried union but didn't get it to work.

--


Gary




moon[_6_]

formula copy question
 
Insert a row above.



"Gary Keramidas" <GKeramidasATmsn.com schreef in bericht
...
what's the best way to copy a non-contiguous row of formulas one row below
it.

for example, A10, c10, e10:h10

so they end up in row 11

i tried union but didn't get it to work.

--


Gary






Tom Ogilvy

formula copy question
 
Sub AAA()
Dim ar As Range
For Each ar In Range("A11").Range("A1,C1,E1:H1").Areas
ar.FillDown
Next
End Sub


--
Regards,
Tom Ogilvy




"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
what's the best way to copy a non-contiguous row of formulas one row below
it.

for example, A10, c10, e10:h10

so they end up in row 11

i tried union but didn't get it to work.

--


Gary






Gary Keramidas

formula copy question
 
thanks for that, tom

--


Gary


"Tom Ogilvy" wrote in message
...
Sub AAA()
Dim ar As Range
For Each ar In Range("A11").Range("A1,C1,E1:H1").Areas
ar.FillDown
Next
End Sub


--
Regards,
Tom Ogilvy




"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
what's the best way to copy a non-contiguous row of formulas one row below
it.

for example, A10, c10, e10:h10

so they end up in row 11

i tried union but didn't get it to work.

--


Gary









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

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