how to select next blank entry line via code

I have a vb add-in that adds items to the transaction screen from a userform, and it works great, except that is doesn't place the cursor in a new blank line, ready for the next entry on the transaction. is there a way do this via qsrules in code?

thanks, kevin

Reply to
kskinne
Loading thread data ...

I found this when I was searching this forum for "code" sounds like a similar problem

Your add-in probably works, but it is the grid that is problematic. It's in memory already but somehow the grid does not update automatically. If you scroll down to the very bottom of the grid by pressing the down key, and then press the DEL key, your missing line will magically appear. So one workaround you can try doing programmatically is:

  1. Set the current focus to the grid.
  2. Send DOWN keystrokes until the cursor is at the bottom of the grid.
  3. Send the DEL keystroke to force the grid to refresh it's display.

"ksk> I have a vb add-in that adds items to the transaction screen from a userform,

Reply to
Jewelsmith

sendkeys I understand, but how do i set the focus back to the grid within the code, before it ends?

thanks, kevin

Reply to
kskinne

i got the sendkeys to work in my code, for more info see my posts in the thread that Jewelsmith was referring to.

thanks, kev> sendkeys I understand, but how do i set the focus back to the grid within the

Reply to
kskinne

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.