I'm not sure - novice. I want to create a spreadsheet in VB, I was given the following suggestion using the MSFlexGrid and I'm stuck at step 2:
----------
Step 1: Add a component Microsoft FlexGrid to your project and MSFlexGrid1 to your form
Step 2: Create and open a recordset rstAccess, must have at least 4 fields for this example
Step 3: Add a FlexGrid to your form, called MSFlexGrid1
Step 4: Add this code to your form, call it on load or with a command button
With MSFlexGrid1
.Clear
.Rows = 2
.Cols = 4
.FormatString = "One" & vbTab & "Two" & _
vbTab & "Three" & vbTab & "Four"
For intCount = 1 To rstAccess.RecordCount
.AddItem (rstAccess.Fields(0)) & vbTab & _
(rstAccess.Fields(1)) & vbTab & (rstAccess.Fields(2)) & _
vbTab & (rstAccess.Fields(3))
rstAccess.MoveNext
Next intCount
.ColWidth(0) = .Width / 4.1
.ColWidth(1) = .Width / 4.1
.ColWidth(2) = .Width / 4.1
.ColWidth(3) = .Width / 4.1
.RowHeight(1) = 40
End With
----------
Any help you could give would be appreciated.