I'm working on excel VBA school assignment and I have an issue and can't seem to find answer online. I have database table that holds information, in certain location I have constant array of ={false, true, false} and I need it to convert it to VBA array TF(1 to 3) TF(1) should have value of false TF(2) should have value of true TF(3) should have value of false so far my code looks like this:
Sub trying()
Dim TF(1 To 3) As String
Set targetWorksheet = Worksheets("duomBazeSheet")
Worksheets("duomBazeSheet").Activate
With targetWorksheet
TF(1) = .Cells(2, 8).Value
MsgBox (TF(1))
End With
End Sub
"duomBazeSheet" is a sheet that has all data in it and target location is (2, 8)
any ideas?
edit: here's link how sheet looks : array is highlighted https://imgur.com/a/lII3c