PC Review


Reply
Thread Tools Rate Thread

Copying A Value Of A String To The Clipboard

 
 
CrazyAccessProgrammer
Guest
Posts: n/a
 
      8th Feb 2009
Using Access 2007, Fully Patched as of 02/07/2009

In VBA, is there a way to copy the value of a string variable to the windows
clipboard?
 
Reply With Quote
 
 
 
 
Albert D. Kallal
Guest
Posts: n/a
 
      8th Feb 2009
"CrazyAccessProgrammer" <(E-Mail Removed)>
wrote in message news:68D91C1E-4085-458F-B753-(E-Mail Removed)...
> Using Access 2007, Fully Patched as of 02/07/2009
>
> In VBA, is there a way to copy the value of a string variable to the
> windows
> clipboard?


For a control, you can go:

Me.Notes.SetFocus
DoCmd.RunCommand acCmdCopy


for a variable, you can use the following api:

http://www.mvps.org/access/api/api0049.htm


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)




 
Reply With Quote
 
CrazyAccessProgrammer
Guest
Posts: n/a
 
      8th Feb 2009
Thank you so much.

"Albert D. Kallal" wrote:

> "CrazyAccessProgrammer" <(E-Mail Removed)>
> wrote in message news:68D91C1E-4085-458F-B753-(E-Mail Removed)...
> > Using Access 2007, Fully Patched as of 02/07/2009
> >
> > In VBA, is there a way to copy the value of a string variable to the
> > windows
> > clipboard?

>
> For a control, you can go:
>
> Me.Notes.SetFocus
> DoCmd.RunCommand acCmdCopy
>
>
> for a variable, you can use the following api:
>
> http://www.mvps.org/access/api/api0049.htm
>
>
> --
> Albert D. Kallal (Access MVP)
> Edmonton, Alberta Canada
> (E-Mail Removed)
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Microsoft Outlook 0 24th Aug 2006 02:44 PM
Copying to clipboard using Ctrl-C or Clipboard.SetText =?Utf-8?B?S2V2aW4gQnVydG9u?= Microsoft Dot NET Framework 0 28th Jul 2006 01:13 AM
Copying the filtered data to clipboard is copying non-visible rows =?Utf-8?B?U2VldGhhUmFtYW4=?= Microsoft Excel Crashes 10 12th Jul 2006 09:39 PM
VB.Net macros - how to fetch string in clipboard into a string variable JohnR Microsoft VB .NET 4 23rd May 2005 02:55 PM
Copying to clipboard John Microsoft VB .NET 8 3rd Nov 2003 11:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 AM.