.copy not working

cknnugget

New Member
Joined
Jun 29, 2020
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Running a macro that copies a cell to the clip board so the user can ctrl+V the contents into a program online. ctrl+V works to paste into a word or excel file, but when attempted in the online program it does not work. Is there a work around.
Here is the current code
VBA Code:
Sheets("Emergent Response").Range("AN3").Copy
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
If you turn on your clipboard, "Windows button + V" instead of Ctrl+V, you can see the previous things that have been copied in your clipboard. When attempting this code, I do see this in my clipboard and can paste it to a website. Can you try this and see if it is in your clipboard?
 
Upvote 0
If you turn on your clipboard, "Windows button + V" instead of Ctrl+V, you can see the previous things that have been copied in your clipboard. When attempting this code, I do see this in my clipboard and can paste it to a website. Can you try this and see if it is in your clipboard?
I believe I found the issue. The cell that was being copied was hidden. After unhiding the cell it copied to the clip board. The work around was I made a cell that was visible = the hidden cell and changed the text to be the same color as the background in a protected area of the sheet. Crude, but copy now works.
 
Upvote 0

Forum statistics

Threads
1,221,519
Messages
6,160,294
Members
451,636
Latest member
ddweller151

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top