Re: VBA KeyPress event

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: JanAdam (jan_at_no.spam.please.com)
Date: 03/26/05

  • Next message: scott: "Re: can't get powerpoint to play music why"
    Date: Sat, 26 Mar 2005 14:12:54 -0800
    
    

    Thanks Brian, will try. JanAdam

    <brian@nothere_reillyand.com> wrote in message
    news:v0984198ss29m1evin9svqcrl9g5m12nj2@4ax.com...
    > JanAdam,
    >
    > Draw a text box control on the page (not on a userform)
    > and add this code to it
    >
    > Private Sub TextBox1_Change()
    > MsgBox TextBox1.Text
    > End Sub
    >
    > Return the string on every keystroke into text box.
    >
    > Brian Reilly, PowerPoint MVP
    >
    > On Thu, 24 Mar 2005 22:18:22 -0800, "JanAdam" <jan@no.spam.please.com>
    > wrote:
    >
    > >Thanks Glenna.
    > >
    > >I know about Insert, Symbol of course. It is very combersome though.
    > >
    > >The idea was to write a code that would read the typed input and, e.g.,
    if
    > >one types "\o" it would execute SendKeys ChrW(248). I just do not know
    how
    > >to read from the keyboard in real time, when typing to a text box or a
    shape
    > >on a slide in normal (edit) view. KeyPress does exactly what I want but
    it
    > >seems to be limited to reading the keyboard when typing to a text box on
    a
    > >form only. Or I am missing something?
    > >
    > >JanAdam
    > >
    > >
    > >
    > >
    > >"PPTMagician" <PPTMagician@discussions.microsoft.com> wrote in message
    > >news:864945DD-CD63-4D72-A889-47B019BEFE5A@microsoft.com...
    > >> Shyam has some code examples here that might help:
    > >> http://skp.mvps.org/vba.htm
    > >>
    > >> About the diacritic characters, click on Insert, Symbol and they are
    > >> available under (normal text) symbols.
    > >>
    > >> Glenna
    > >>
    > >> "JanAdam" wrote:
    > >>
    > >> > It seems to me that the KeyPress event is fired only if typing to a
    > >textbox
    > >> > on a form, is it correct?
    > >> > And if yes, is there an equivalent event or a way around it such that
    I
    > >can
    > >> > read and process text typed to a slide in normal (edit) view?
    > >> > This has been prompted by somebody asking this group some time ago
    how
    > >to
    > >> > type diacritic characters into PP slides.
    > >> >
    > >> > JanAdam
    > >> >
    > >> >
    > >> >
    > >
    >


  • Next message: scott: "Re: can't get powerpoint to play music why"

    Relevant Pages

    • Re: Auto Expand Drop Down Menu Box
      ... everything by keyboard if possible. ... typing takes place, ... selection, the combo box pops it back up after clicking. ... Private Sub Combo1_KeyPress ...
      (comp.databases.ms-access)
    • Re: VBA KeyPress event
      ... Private Sub TextBox1_Change ... MsgBox TextBox1.Text ... >to read from the keyboard in real time, when typing to a text box or a shape ...
      (microsoft.public.powerpoint)
    • decimal places in currency
      ... When using the following 2 peices of code in a userform I cna format the ... Private Sub MeanVC_Change ... So in MaxQ_Change I type 10000, I get 10,000 appear as I'm typing ...
      (microsoft.public.excel.programming)
    • Re: Entering text in combobox using vba
      ... the combobox auto fill the rest on the text just like how it normally works ... when you are typing from the keyboard? ... Not "just like" when typing, ... Private Sub cboName_Enter ...
      (microsoft.public.access.formscoding)
    • Re: Irregular Shape
      ... If you are asking how to have a "title" on a form that you removed the title bar from, then I would just place a Label on the UserForm. ... Dim MyRegionAs POINTAPI ... > Private Sub UserForm_Initialize ... > DeleteObject DefinedRegion ...
      (microsoft.public.excel.programming)