I would like to be able to set the position of the cursor in the text in a particular cell using VBA.
The situation is that I am creating a lab report writer. Using then worksheet_selection_event I can determine where on the page the user clicked (by making the columns quite narrow), and bring the text for that row (which resides in the 1st cell of the row) to the formula bar for editing. I would like to be able to move the cursor along in the formula bar to the correct place in the text (or close to it) based on where on the screen they clicked in order to edit the line.
Can anyone tell me the code for doing this?
Thanks
The situation is that I am creating a lab report writer. Using then worksheet_selection_event I can determine where on the page the user clicked (by making the columns quite narrow), and bring the text for that row (which resides in the 1st cell of the row) to the formula bar for editing. I would like to be able to move the cursor along in the formula bar to the correct place in the text (or close to it) based on where on the screen they clicked in order to edit the line.
Can anyone tell me the code for doing this?
Thanks