Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-28-2024, 05:59 AM
randyspaulding12 randyspaulding12 is offline Copy/Paste of unmodified VBA Code in Word returns an error Windows 11 Copy/Paste of unmodified VBA Code in Word returns an error Office 2021
Novice
Copy/Paste of unmodified VBA Code in Word returns an error
 
Join Date: May 2024
Posts: 9
randyspaulding12 is on a distinguished road
Default Copy/Paste of unmodified VBA Code in Word returns an error


Hello, I copy and pasted sample VBA code from CoPilot into Word as a macro and tried running it but received the attached error message. I am starting here because it seems every time I copy and paste VBA code snippets into my Word document I get either the attached error or (more frequently) a run-time error 13 type mismatch, without modifying any of the sample code. I am guessing it is some simple universal setting that I am doing wrong???
Attached Images
File Type: jpg Screenshot 2024-05-28 075723.jpg (112.3 KB, 20 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code to copy data from two sheet ,paste into corresponding sheet through cmdbutton jackfruit88 Excel Programming 1 07-08-2022 09:27 PM
paste returns the wrong not the latest cut Peborgh Word 2 11-23-2021 03:31 AM
Copy/Paste of unmodified VBA Code in Word returns an error Error 4605 while trying to copy and paste with same document Ilmari Word VBA 2 05-05-2020 12:08 AM
Copy/Paste of unmodified VBA Code in Word returns an error Copy/Paste error stuart255 Office 5 05-06-2019 02:13 AM
VBA Newbie (Trying to write a code to copy and paste info from one sheet to another) Forum2000s Excel Programming 2 05-07-2017 04:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft