Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the following code to fill the list in a combobox. As you can see
the values are assigned to cells. The cell reference to B54 is the line after the code. EXCEL gets extremely slow when assigning the values. I am wondering if it will speed up tremendously if I code the entire operation rather than using the cell values. If so how do I store each additional value that will be added to the list programmatically. The output should be fairly straightforward. Sub ModelListFill() Dim ModelNumber As Integer Dim i As Integer ModelNumber = 0 For i = 4 To 100 If Sheets("Defaults").Range("B" & i) < "" Then Sheets("Defaults").Range("X" & i).Value = Sheets("Defaults").Range("B" & i).Value ModelNumber = ModelNumber + 1 Else i = 100 End If Next Sheets("Variables").Range("B54").Value = ModelNumber Sheet1.ComboBox6.ListFillRange = Sheets("Variables").Range("B55").Value End Sub ="Defaults!X4:X"&B54+3 Thanks for any help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code to fill down | Excel Discussion (Misc queries) | |||
auto fill code | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
I have a list of data, fill in the gaps. FILL function won't work | Excel Discussion (Misc queries) | |||
find & delete + fill to end code? | Excel Programming |