myarrayi

  1. TAPS_MikeDion

    ComboBox list ends with 2 blank rows of data ???

    Hi all, I'm sure I'm missing something small, but does anyone know why I have to use "LastRow-2" in the code below to keep from ending up with 2 empty rows of data at the bottom of my ComboBox list? I guess I would get it if I had to use LastRow-1 since the array might be putting in an extra...
  2. J

    UDF returning an Error

    Hi, When I am passing a range to the below UDF, say A1=CorrelationCoefficient(B1:C100, 1, 2, 0) I am getting an VALUE error. Any reason why? The code is: Public Function CorrelationCoefficient(MyArray() As Double, Optional asX As Long = -1, _ Optional...
  3. T

    IfError

    Normally I would use On Error but I want to find out why this doesn't work: In column A, put some values in cell A1 to A6, ensuring at least one value is zero. Dim MyArray() As Variant MyArray() = Cells(1, 1).CurrentRegion.Value Dim i, j For i = 1 to 6 j =...
  4. M

    Variant Array Type Mismatch

    I was wondering if anyone could help out here. Data is 20 columns (50k rows) with numbers and text (basically stock tickers with market values) and I am trying to use an array to speed up a loop. I already coded the For Next loop but was wondering if an array could improve the time to go...
  5. T

    Class instead of array

    On my worksheet, in column A, I have 5 rows of data and a heading in cell A1. Say: Name a a b c d This is my code without using classes: Option Explicit Sub NoClass() Dim MyArray(1 To 6, 1 To 1) As Variant Dim i As Integer For i = 2 To 5 If MyArray(i, 1) <> MyArray(i + 1, 1)...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top