A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

clipboard



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 17th 08, 03:52 AM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default clipboard

Hello,

I have code that works well for copying text to a clipboard, but it's very
slow (5-10 seconds). It utilizes IE to do this. Is there a quicker way to
this - perhaps not having to rely on IE?


Sub CommandButtonClipBoard_Click()

On Error Resume Next

Dim strCopy

Dim objIE

JobYear = cstr(Year(Item.UserProperties("JobInitiatedDate")) )

strCopy =
"\\tgps8\drawing$\Jobs-"+JobYear+"\"+Item.UserProperties("JobNumber") +"
"+Item.UserProperties("JobName")

Set objIE = CreateObject("InternetExplorer.Application")

objIE.Navigate("about:blank")

objIE.document.parentwindow.clipboardData.SetData "text", strCopy

objIE.Quit

End Sub





Thanks,

Joel


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clipboard pop up!! pjcraig Outlook - General Queries 0 October 15th 06 04:06 PM
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Outlook - General Queries 0 August 24th 06 03:44 PM
clipboard Joel Allen Outlook and VBA 0 February 22nd 06 01:42 AM
clipboard Joel Allen Outlook and VBA 1 January 28th 06 06:04 PM
Clipboard Joel Allen Outlook and VBA 0 January 26th 06 05:16 PM


All times are GMT +1. The time now is 08:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.