#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default 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



Reply
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
Filling down Officeteacher Excel Discussion (Misc queries) 5 February 22nd 10 08:29 PM
filling formulas mattblack Excel Discussion (Misc queries) 2 October 31st 07 05:17 AM
Filling down w/o dragging Zb Kornecki Excel Worksheet Functions 6 May 31st 07 12:01 AM
filling information from one cell and filling another. Dianne Excel Worksheet Functions 1 August 15th 05 08:14 PM
Zero Filling Excel Discussion (Misc queries) 4 December 17th 04 08:46 PM


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