P
Peter
I have a VBA application that teachers can use to mark assignments by placing
their cursor in a particular cell in a table then pressing function keys.
Each row in the table corresponds to a specific performance standard (and
contains a mark) and the last column is used to store the total marks. If the
teacher places the cursor in a row and presses F6 then that row is coloured
and the mark is inserted into the last colum in that that row. You can see a
screen image at
http://emarking-assistant.baker-evans.com/screen_image.htm
Currently the VBA does not need to know what row or cell the cursor is in
and it uses the following to move around the table or make selections
Selection.EndKey Unit:=wdRow, Extend:=True
Selection.HomeKey Unit:=wdRow
Selection.MoveRight Unit:=wdCell, count:=2
The next version of the application will be a little more complicated and
will require VBA to know what cell the cursor is in so it can put the correct
mark in the corresponding total cell.
How can VBA know what cell the cursor is in when a function key is pressed?
And then move to the 5 column in that row and insert a value into it.
Thanks in advance for any assistance,
Peter Evans
their cursor in a particular cell in a table then pressing function keys.
Each row in the table corresponds to a specific performance standard (and
contains a mark) and the last column is used to store the total marks. If the
teacher places the cursor in a row and presses F6 then that row is coloured
and the mark is inserted into the last colum in that that row. You can see a
screen image at
http://emarking-assistant.baker-evans.com/screen_image.htm
Currently the VBA does not need to know what row or cell the cursor is in
and it uses the following to move around the table or make selections
Selection.EndKey Unit:=wdRow, Extend:=True
Selection.HomeKey Unit:=wdRow
Selection.MoveRight Unit:=wdCell, count:=2
The next version of the application will be a little more complicated and
will require VBA to know what cell the cursor is in so it can put the correct
mark in the corresponding total cell.
How can VBA know what cell the cursor is in when a function key is pressed?
And then move to the 5 column in that row and insert a value into it.
Thanks in advance for any assistance,
Peter Evans