Results 1 to 10 of 549

Thread: Tests Copying pasting Cliipboard issues

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,323
    Rep Power
    10
    Some more notes in support of this main Forum Thread
    https://www.eileenslounge.com/viewto...p?f=27&t=39784


    Code:
    Sub ClipIt() ' https://www.eileenslounge.com/viewtopic.php?f=27&t=39784
     Selection.Copy  '  Or   Application.SendKeys "^c"
        With GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")  '    http://web.archive.org/web/20200124185244/http://excelmatters.com/2013/10/04/late-bound-msforms-dataobject/
        Dim StringBack As String ' This is for the entire text held for the range in the windows clipboard after a  .Copy
         .GetFromClipboard: Let StringBack = .GetText()
         Let StringBack = Replace(StringBack, vbCr & vbLf, ", ", 1, -1, vbBinaryCompare) '  Binary - derived from the internal binary representations of the characters    https://www.eileenslounge.com/viewtopic.php?p=308065#p308065
         Let StringBack = Left(StringBack, Len(StringBack) - 2) '  .Copy  adds an extra trailing vbCr & vbLf      https://www.eileenslounge.com/viewtopic.php?p=303007#p303007    
         .Clear
         .SetText StringBack
         .PutInClipboard
        End With
     Let Selection(1).Offset(1, 1).NumberFormat = "@"
     ActiveSheet.Paste Destination:=Selection(1).Offset(1, 1)
    End Sub

    more later..



    https://www.youtube.com/watch?v=yVgLmj0aojI
    https://www.youtube.com/watch?v=yVgLmj0aojI&lc=UgwWg8x2WxLSxxGsUP14AaABAg.9k3ShckGnhv9k89Lsaig oO
    https://www.youtube.com/watch?v=yVgLmj0aojI&lc=UgxxxIaK1pY8nNvx6JF4AaABAg.9k-vfnj3ivI9k8B2r_uRa2
    https://www.youtube.com/watch?v=yVgLmj0aojI&lc=UgxKFXBNd6Pwvcp4Bsd4AaABAg
    https://www.youtube.com/watch?v=yVgLmj0aojI&lc=Ugw9X6QS09LuZdZpBHJ4AaABAg
    Last edited by DocAElstein; 07-09-2023 at 07:12 PM.

Similar Threads

  1. Table Tests. And Thread Copy Tests No Reply needed
    By DocAElstein in forum Test Area
    Replies: 1
    Last Post: 11-20-2018, 01:11 PM
  2. Table Tests. And Thread Copy Tests No Reply needed
    By DocAElstein in forum Test Area
    Replies: 1
    Last Post: 11-20-2018, 01:11 PM
  3. Replies: 11
    Last Post: 10-13-2013, 10:53 PM
  4. Replies: 1
    Last Post: 09-14-2013, 12:49 PM
  5. Replies: 7
    Last Post: 08-28-2013, 12:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •