Consulting

Results 1 to 3 of 3

Thread: Difficulty using KeyPress Command

  1. #1

    Difficulty using KeyPress Command

    Hi,

    I want that the users of my program can only enter numbers and decimal coma (point is changed in coma in my code). But I always get this message when implementin the line: "procedure declaration does not match description of event or procedure having the same name". I tried everything . Thanks in avance.

    Please, see the screen shot abd note that my excel is in French (but I code in English).
    Attached Images Attached Images

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Private Sub txtLongueur_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
    Also be certain that the control is named exactly "txtLongueur"
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Thank you very much. It works perfectly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •