Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Document Index    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Error During Paste
Tom Mura 
     
2 years ago
When I use the 'load text' button I get an error and debug takes me to this:

    Status "Pasting Text..."
    DocText.SetFocus
    DoCmd.RunCommand acCmdPaste --THIS LINE IS HIGHLIGHTED
    DocName.SetFocus
    If IsNull(DocName) Then DocName = Left(DocText, 50)

I copied the code from the downloaded file so I'm not sure what the issue is. Any help would be appreciated.
Tom Mura OP  @Reply  
     
2 years ago

Tom Mura OP  @Reply  
     
2 years ago
I plugged the code into ChatGPT and asked why I received an error and it suggested a pause before the paste command and offered this code:  

' Add a delay to ensure the clipboard is ready
    Application.Wait (Now + TimeValue("0:00:01"))

When I debug it shows a error since 'Application.Wait' does not exist.

I use ClipMate and I think that must be the issue. The text is not making it to ClipMate and can't be pasted.

Any suggestions for making this work with ClipMate?
Tom Mura OP  @Reply  
     
2 years ago
I found the problem. I never changed the DocText field to long text. Rookie mistake.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Document Index.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 2:02:53 PM. PLT: 0s