No sorry, it does have both, missed it off this messageOnly one double quote?
Just changed it to uppercase….No sorry, it does have both, missed it off this message
Sendkeys “+{Right 4}”, True
Still have the Sendkeys “^V” issue thoughOkay, try the following experiment. Execute your code twice in a row. What happens?
Edit: Oops, too slow. The above was in response to your previous post, before you fixed it.
Not sure what to tell you. Most developers avoid or don't use Sendkeys. What are you trying to do? Maybe we can use code instead.Still have the Sendkeys “^V” issue though
Trying to create a copy and paste routine but make it as automated as possible….Not sure what to tell you. Most developers avoid or don't use Sendkeys. What are you trying to do? Maybe we can use code instead.
Hmm, so how did Sendkeys "+{RIGHT,4}" help to do that? That code will only select 4 characters.Trying to create a copy and paste routine but make it as automated as possible….
The operator opens form NISFeatureDataFrm and selects the data rows required for copying, which is VARIABLE
They would then click a form button which copies the data (Sendkeys “^c”)then opens another form, NISFeatureDataPasteFrm
This form opens with the paste area selected (this is the Sendkeys issue) then pastes the copied data
The remaining InspectionID field will fill in with the required number
Many thanks
Sorry again, I’m going to have to get used to putting full details for you guys to help you understandHmm, so how did Sendkeys "+{RIGHT,4}" help to do that? That code will only select 4 characters.
In any case, you might want to investigate the SelTop and SelHeight properties. You might be able to use them to determine the selected items/records.
Yes. For that, you could use the SelStart and SelLength properties.Before the Sendkeys, I told it to go to control ITEM, which then only need4 right moves
Do you think code could do it?
Wonder if anyone can help me with this code I have in an Event Procedure
Sendkeys “+{Right 4}, True
the shift element isn’t working as the cursor just moves right 4
Hi. Glad to hear you got it sorted out. Good luck with your project.theDBguy & Isaac,
thanks for your assistance/comments……
I have changed the form designs and put the Sendkeys within a Function (see attachment) and I’m pleased to report that it works great
The operator will be so pleased that all they have to do now is type in the inspection report they wish to copy and click a button and hey presto