OLK2003: Howto bring a post item into the clipboard?

  • Thread starter Thread starter Wolfram Jahn
  • Start date Start date
W

Wolfram Jahn

Hi,

whats the best way to bring (a copy of) a post item into the clipboard
in Outlook 2003, without programming the client, only using VBS form code?

With Outlook 2000, I just copied my item into a temporary subfolder of
deleted items, switched the active explorer to this folder, and executed
the Edit/Copy menu button.

With Outlook 2003, the default view of a newly created folder does not
show any item, but only the group header, which is then useless to copy
to the clipboard.

Thanks,

Wolfram
 
Wolfram said:
Hi,

whats the best way to bring (a copy of) a post item into the clipboard
in Outlook 2003, without programming the client, only using VBS form code?

With Outlook 2000, I just copied my item into a temporary subfolder of
deleted items, switched the active explorer to this folder, and executed
the Edit/Copy menu button.

With Outlook 2003, the default view of a newly created folder does not
show any item, but only the group header, which is then useless to copy
to the clipboard.

To whom it may concern:

Solved.

Have now two code pathes <sigh> for OLK2K and above.

'Above'-solution is:
set e = tempfolder.getexplorer
e.currentview = 'v'
e.activate
e.commandbars.activemenubar.findcontrol(1,19,,,true).execute
e.close

Where view 'v' has to exist for all folders and be defined without grouping.


Wolfram
 
What do you want to do with this post item once it's on the clipboard? Your answer may suggest a path toward a better solution.

FWIW, VBS form code **is** programming the client.
 
Sue said:
What do you want to do with this post item once it's on the clipboard? Your answer may suggest a path toward a better solution.

Among other things, I want to offer the form action:

"Copy document link to clipboard"

The user then can use the clipboard content at will.

Background is an outlook forms application which provides some simple
document management features, e.g. versioning, document links, some
company-specific meta-data.

The document links are their own message class which, on open, opens the
linked document instead.

This application runs in a Citrix environment, where it is very tedious
to get client software installed (very formal service provider); so we
implemented everything in outlook forms/vbs, which reduces software
deployment to installation of some organizational forms - which we
managed to get the permission to do.
FWIW, VBS form code **is** programming the client.

Yes, of course; but without sw deployment to each client and each Citrix
server; some of us use local Outlook, some use Citrix Outlook.

We use the term 'programming the client' for VBA programming, as opposed
to 'programming the Citrix server' using Outlook organizational forms,
which is, admittedly, misleading.


Wolfram
 
Document link?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top