Any way to use VBA to freeze a column in a datasheet view form?
I've found the FrozenColumns Property, which is readonly so not much help. I've managed to set the property in form view (right click on column...), but can't find out how to do this in code.
So far:
My form is created from a temporary table that in turn is created by a crosstab query, or import from Excel. I want to freeze and lock (lock done) column 1, so that users can enter data in the remaining columns (there can be up to 80 of them, so the locking is REALLY useful!).
A workaround could be to not delete the form between instances, and just delete all the controls but the one that I want frozen, since it will always have the same name - would the freezing persist then?
An alternative would be to try to synchronize the vertical scrolling, but that sounds very complicated.
Any ideas?
Phil
---------------
Pass me the ether.
I've found the FrozenColumns Property, which is readonly so not much help. I've managed to set the property in form view (right click on column...), but can't find out how to do this in code.
So far:
Code:
Private Sub Form_Open(Cancel As Integer)
CODE.ColumnHidden = True
[Species Name].ColumnWidth = 3500
[Species Name].Locked = True
End Sub
My form is created from a temporary table that in turn is created by a crosstab query, or import from Excel. I want to freeze and lock (lock done) column 1, so that users can enter data in the remaining columns (there can be up to 80 of them, so the locking is REALLY useful!).
A workaround could be to not delete the form between instances, and just delete all the controls but the one that I want frozen, since it will always have the same name - would the freezing persist then?
An alternative would be to try to synchronize the vertical scrolling, but that sounds very complicated.
Any ideas?
Phil
---------------
Pass me the ether.