gingermonkey17
New Member
- Joined
- Mar 7, 2014
- Messages
- 4
Hi All,
I'm not sure this is possible to do but here is definitely the best place to ask.
I currently use a bit of vba code to expand two pieces of data for example:
Cell 1 value: 1
Cell 2 Value: 4
With the vba code this is expanded into further cells to become:
Cell 3 Value: 1
Cell 4 Value: 2
Cell 5 Value: 3
Cell 6 Value: 4
The problem occurs because i want to do this for roughly 1000 rows, I could right the code per row but obviously this is impractical, is there a way to get this done?
Current code below:
Thank you!
I'm not sure this is possible to do but here is definitely the best place to ask.
I currently use a bit of vba code to expand two pieces of data for example:
Cell 1 value: 1
Cell 2 Value: 4
With the vba code this is expanded into further cells to become:
Cell 3 Value: 1
Cell 4 Value: 2
Cell 5 Value: 3
Cell 6 Value: 4
The problem occurs because i want to do this for roughly 1000 rows, I could right the code per row but obviously this is impractical, is there a way to get this done?
Current code below:
Code:
Private Sub CommandButton1_Click()
Dim vStop, vStart
With WorksheetFunction
Start001 = .Min(Sheet1.Range("G6:H6"))
Stop001 = .Max(Sheet1.Range("G6:H6"))
End With
With Sheet1
.Range("L6") = Start001
.Range("L6:Z6").DataSeries Step:=1, Stop:=Stop001
End With
End Sub
Thank you!