WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Programmatic plain-text insert

 
   Home -> Office -> Programming VBA RSS
Next:  Get selection into textstring  
Author Message
BrianWren

External


Since: Dec 05, 2007
Posts: 14



(Msg. 1) Posted: Wed Dec 05, 2007 1:04 pm
Post subject: Programmatic plain-text insert
Archived from groups: microsoft>public>outlook>program_vba (more info?)

I would like to create a macro, and put it on a toolbar button, that invoked
the behavior of Edit>Paste Special...>plain text.

How do I insert in an email that is open?

Can macros be assigned to buttons on a toolbar?

--
There are exactly 10 kinds of people: Those who do- and those who don’t
understand binary.
Back to top
Login to vote
Eric Legault [MVP - Outlo

External


Since: Aug 08, 2006
Posts: 302



(Msg. 2) Posted: Wed Dec 05, 2007 3:00 pm
Post subject: RE: Programmatic plain-text insert [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can only go so far to automate selecting the Paste Special menu item.
You can execute it as below, but you cannot control what happens with the
subsequent dialog that provides the paste options.

Dim objCBs As CommandBars
Dim objCBC As CommandBarControl
Dim objCB As CommandBar


Set objCBs = Application.ActiveInspector.CommandBars
Set objCB = objCBs("Menu Bar")
Set objCBC = objCB.FindControl(, 30003) 'Edit menu

For Each objCBC In objCBC.Controls
If objCBC.ID = 755 Then 'Paste Special
objCBC.Execute
Exit Sub
End If
Next

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"BrianWren" wrote:

> I would like to create a macro, and put it on a toolbar button, that invoked
> the behavior of Edit>Paste Special...>plain text.
>
> How do I insert in an email that is open?
>
> Can macros be assigned to buttons on a toolbar?
>
> --
> There are exactly 10 kinds of people: Those who do- and those who don’t
> understand binary.
Back to top
Login to vote
Cerveja

External


Since: Feb 12, 2008
Posts: 2



(Msg. 3) Posted: Tue Feb 12, 2008 7:47 am
Post subject: RE: Programmatic plain-text insert [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Awesome. Thanks Eric. I have been hitting "ALT + E + S" to trigger Paste
special as with Word and it sends my incomplete email. Thanks.

"Eric Legault [MVP - Outlook]" wrote:

> You can only go so far to automate selecting the Paste Special menu item.
> You can execute it as below, but you cannot control what happens with the
> subsequent dialog that provides the paste options.
>
> Dim objCBs As CommandBars
> Dim objCBC As CommandBarControl
> Dim objCB As CommandBar
>
>
> Set objCBs = Application.ActiveInspector.CommandBars
> Set objCB = objCBs("Menu Bar")
> Set objCBC = objCB.FindControl(, 30003) 'Edit menu
>
> For Each objCBC In objCBC.Controls
> If objCBC.ID = 755 Then 'Paste Special
> objCBC.Execute
> Exit Sub
> End If
> Next
>
> --
> Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
> Try Picture Attachments Wizard for Outlook:
> http://www.collaborativeinnovations.ca
> Blog: http://blogs.officezealot.com/legault/
>
>
> "BrianWren" wrote:
>
> > I would like to create a macro, and put it on a toolbar button, that invoked
> > the behavior of Edit>Paste Special...>plain text.
> >
> > How do I insert in an email that is open?
> >
> > Can macros be assigned to buttons on a toolbar?
> >
> > --
> > There are exactly 10 kinds of people: Those who do- and those who don’t
> > understand binary.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support