VBA/Macro for paste as plain text Excel for Mac?

msklut

New Member
Joined
Dec 12, 2019
Messages
8
Office Version
  1. 2019
Platform
  1. MacOS
Any suggestions for VBA code that would force any pasted text as plain text? Haven't had any luck... Working on Excel for Mac 16.33. Ideally we'd like this to work for any text that is pasted into our workbook.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
It's not something you can really force. I am not a fan of (trying to) replace the existing Paste buttons in a program. If the program crashes, all the rewrites are still in affect...
But I did recently have a client with the issue. While in the end they decided not to release the change, what I had done was use a Change event to apply a Style to the cell. If there might be formulas involved, you can also add a paste values to that. But - at the same time, this was for a specific part of the sheet and one sheet only. It's not something I would apply to all sheets and all cells as it can slow the workbook down.
If the users are disciplined enough, you can add a custom Paste to the right-click context menu "msklut's Paste As Text" and even assign it to a custom keyboard combination. Though.. not 100% sure if accessing a Mac's context menu would be the same code as PC.. Mac's are fussy that way.
 
Upvote 0
I tried adding a custom keyboard shortcut for Match Destination Formatting but it didn't work... Is there a different menu title I should try?
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

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