S
Susan Hayes
Hello
Im trying to read a range of entries, but Im not sure how this works.
Under the excel objects in "this workbook" I wrote:
Public Sub Workbook_Open()
Dim i As Single
Dim j As Single
Dim myarray(18, 10)
For i = 1 To 18
For j = 1 To 10
myarray(i, j) = Worksheets("schedule").Cells(i + 3, Chr(68 + j))
Next
Next
End Sub
After in sheet1 I try to display the myarray to see if it was read but doesnt work. Can anyone help me with this?
Im also not sure how to pass variables between sheets, I can only do it within the same sheet.
Any help is greatly appreciate. This newsgroup has helped me alot
Thank you
Mike
Im trying to read a range of entries, but Im not sure how this works.
Under the excel objects in "this workbook" I wrote:
Public Sub Workbook_Open()
Dim i As Single
Dim j As Single
Dim myarray(18, 10)
For i = 1 To 18
For j = 1 To 10
myarray(i, j) = Worksheets("schedule").Cells(i + 3, Chr(68 + j))
Next
Next
End Sub
After in sheet1 I try to display the myarray to see if it was read but doesnt work. Can anyone help me with this?
Im also not sure how to pass variables between sheets, I can only do it within the same sheet.
Any help is greatly appreciate. This newsgroup has helped me alot
Thank you
Mike