Auto Paste Special VB Code

FXA

Board Regular
Joined
Jan 28, 2023
Messages
71
Office Version
  1. 365
Platform
  1. Windows
How do I get this to work in Excel?

VBA Code:
ActiveSheet.PasteSpecial Format:="TEXT", Link:=False, DisplayAsIcon:= _
        False, NoHTMLFormatting:=True

Thank you in advance
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How do I get this to work in Excel?

VBA Code:
ActiveSheet.PasteSpecial Format:="TEXT", Link:=False, DisplayAsIcon:= _
        False, NoHTMLFormatting:=True

Thank you in advance
What are you trying to do exactly? Paste Values Only (Text) from the Clipboard to the Active Cell?
 
Upvote 0
What are you trying to do exactly? Paste Values Only (Text) from the Clipboard to the Active Cell?
Yes, instead of right clicking, want it to automatically do this when pasting
 
Upvote 0
Perhaps this?

I followed the instructions but unfortunately it is only for 2013 and a solution for 2016 and doesn't work in 365. I get the solution but the VB code has to be different for 365 and that I am not very familiar with.
 
Upvote 0
The original code works fine for me in 365, have you actually copied any cells before using the Ctrl + v?
 
Upvote 0
I followed the instructions but unfortunately it is only for 2013 and a solution for 2016 and doesn't work in 365. I get the solution but the VB code has to be different for 365 and that I am not very familiar with.
I ran it under 365 and it works for me.
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,363
Members
449,097
Latest member
thnirmitha

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