Question : set a grid to another variable

OK hopefully simple
I am trying to set a grid to another variable since I have multiple grids in the program. I need to pass the grid to this function that is active.

Dim oGrid As FlexCell.Grid
SaveGridChanges.visible = True

oGrid = GridMain ' This will change based on where it is called from
error Object variable or with block variable not set

Answer : set a grid to another variable

If you are using VB6:
1:
2:
3:
4:
Dim oGrid As FlexCell.Grid
SaveGridChanges.visible = True

Set oGrid = GridMain ' This will change based on where it is called from
Random Solutions  
 
programming4us programming4us