ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   filling (https://www.excelbanter.com/excel-programming/291955-filling.html)

greg

filling
 
Is there a way to fill the cells in a row that start at a value in the first cell of that row and end at a value in the second cell of that row
-Greg

Rob van Gelder[_4_]

filling
 
Here's one that fills 5 columns across:


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"greg" wrote in message
...
Is there a way to fill the cells in a row that start at a value in the

first cell of that row and end at a value in the second cell of that row?
-Greg




Rob van Gelder[_4_]

filling
 
Trying again...

Here's one that fills 5 columns across.

Sub test()
Dim lngRow As Long, lngColumns As Long

lngRow = 1: lngColumns = 5

With Cells(lngRow, 1)
.AutoFill .Resize(1, lngColumns)
End With
End Sub


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"greg" wrote in message
...
Is there a way to fill the cells in a row that start at a value in the

first cell of that row and end at a value in the second cell of that row?
-Greg





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

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