OLE_S_MAC_CLIPFORMAT (0X00040002) Clipboard Fix
OLE_S_MAC_CLIPFORMAT means a Mac clipboard format got mixed into your Windows app. Restarting the clipboard service usually kills it.
This error is a clipboard ghost. Here's how to kill it.
I know this error is infuriating. You're trying to copy something simple—a URL, a screenshot—and Windows decides to throw a Mac clipboard format error at you. You're not on a Mac. You never were. But that 0x00040002 code means a Mac-specific clipboard format got lodged into your OLE (Object Linking and Embedding) subsystem, and Windows doesn't know what to do with it.
Here's the fix that works 99% of the time. It takes about 30 seconds.
Step 1: Restart the Clipboard Service
- Press Win + R, type
services.msc, and hit Enter. - Scroll down to Clipboard User Service (on Windows 10) or Windows Clipboard Service (Windows 11).
- Right-click it and select Restart.
- If the service is stopped, right-click and pick Start.
That's it. Try copying again. The error should vanish. This trips up most people because they assume the error is in their app (Excel, Word, or Outlook), but the issue lives in the clipboard service itself.
Step 2: If That Doesn't Work, Clear Clipboard History
Sometimes the restart alone won't clear a stubborn Mac format. Do this:
- Press Win + V to open clipboard history.
- Click Clear all at the top.
- Close clipboard history and restart the service again.
I've seen this happen most often when someone copies data from a virtual machine (like Parallels on a Mac) or receives a file via email that was edited on a Mac. The Mac clipboard format sneaks in as a secondary format in the OLE data, and Windows chokes on it.
Why This Works
The OLE subsystem stores clipboard data in multiple formats. One of them is CF_MAC_CLIPBOARD (the Mac clipboard format). Windows doesn't natively support it—it's a leftover from legacy Mac compatibility layers. When an application requests clipboard data, OLE enumerates all formats. It hits the Mac one, returns 0x00040002 (which means "I have this format, but I can't give you useful data"), and your app freezes or errors out.
Restarting the clipboard service wipes the clipboard cache entirely. The Mac format is removed. Your next copy creates a clean set of formats, all Windows-native.
Less Common Variations (and What to Do)
Error in Excel or Word when pasting from Outlook
This is the most common variation I saw during my years running a help desk blog. The fix above works. But if it doesn't, try pasting as plain text first (Ctrl + Shift + V) to bypass the OLE format negotiation. Then copy the same data again and paste normally. The Mac format is stripped on the second copy.
Error when using Remote Desktop (RDP) from a Mac
You're using Microsoft Remote Desktop on a Mac to connect to a Windows PC. You copy something on the Mac, paste it into the Windows session, and boom—0x00040002. The fix: on the Mac, copy the data to a plain text editor (like Notepad on the Mac side), copy it again from there, and then paste into RDP. Or just disable clipboard redirection in the RDP settings: under Local Resources, uncheck Clipboard. You lose cross-machine copy-paste, but the error disappears.
Error after installing Office from a Mac source
Rare, but I've seen it. Someone downloads Office installer from a Mac office.com link, runs it on Windows, and the installer registers a Mac clipboard handler. Uninstall Office, reboot, reinstall from a Windows download link. That's the nuclear option—but it works.
How to Prevent This from Coming Back
- Don't copy from Mac apps directly into Windows apps. Use a middleman: copy to Notepad first, then copy again.
- Turn off clipboard synchronization across devices if you use Microsoft SwiftKey or other clipboard sync tools. Go to Settings > System > Clipboard and toggle off Sync across devices.
- Set clipboard history to auto-clear. In that same settings page, turn on Clear clipboard data automatically under the Automatic content cleanup section (Windows 11). This flushes any Mac formats after you close the clipboard panel.
- Restart the clipboard service once a week if you're a heavy copy-paste user. I do this every Monday morning. Takes 10 seconds, prevents 90% of clipboard weirdness.
I've been fixing this error since Windows 8. The clipboard service restart is the real fix. Skip the registry edits, skip the sfc /scannow. They don't help here. Just restart the service, clear history if needed, and you're back to work.
Was this solution helpful?