Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
<o
></o
>
I have a large amount of data on a worksheet (in a single column) and I would like to create an array from it. My code asks the user to input the first row and the letter of the column where the data is and the code finds the last row so I have three variables to describe where the data is coming from.
<o
></o
>
<o
></o
>
How could I create an array from this to be able to refer to it in the code later on?
<o
></o
>
<o
></o
>
Any input is greatly appreciated.<o
></o
>
<o
></o
>
Thanks in advance!<o
></o
>
<o
></o
>
Jazztech
My code so far:
Sub histogram()
'USER INPUTS
Dim FirstRow As Integer
FirstRow = InputBox(prompt:="FirstRow", Default:=18)
Dim FLCol As String
FLCol = InputBox(prompt:="FL Vel Column", Default:="b")
Dim acs As Worksheet
Set acs = ActiveWorkbook.ActiveSheet
Dim LastRow As Long
LastRow = acs.Cells(FirstRow, FLCol).End(xlDown).Row
<o
I have a large amount of data on a worksheet (in a single column) and I would like to create an array from it. My code asks the user to input the first row and the letter of the column where the data is and the code finds the last row so I have three variables to describe where the data is coming from.
<o
<o
How could I create an array from this to be able to refer to it in the code later on?
<o
<o
Any input is greatly appreciated.<o
<o
Thanks in advance!<o
<o
Jazztech
My code so far:
Sub histogram()
'USER INPUTS
Dim FirstRow As Integer
FirstRow = InputBox(prompt:="FirstRow", Default:=18)
Dim FLCol As String
FLCol = InputBox(prompt:="FL Vel Column", Default:="b")
Dim acs As Worksheet
Set acs = ActiveWorkbook.ActiveSheet
Dim LastRow As Long
LastRow = acs.Cells(FirstRow, FLCol).End(xlDown).Row