Forum Discussion
mugheessiddiqui
13 years agoContributor
They way you are trying to perform action on cells is impossible, You must get a particular cells's object refrence to perform a Keys function, You are performing all action on afxFrameOrView80u.GXEDIT1 that is the first cell/component.
Set gxedit = afxFrameOrView80u.GXEDIT1
Variable gxedit has a reference of GXEDIT1 and that never updates, so all your action are performing on first component, Keys move up/down will transfer the control to next cell but still gxedit has reference of first component and you are trying to edit the value of above cell. May be that's the issue, Keys "F2" enabling second cell for editing but code is trying to writing in first cell.