I am working with a macro (Excel 2010) to match destination formatting. The data I am working with is coming through in image format and with merged cells when I paste it.
The macro below is supposed to automatically format the data so when I paste using Ctrl + V, it matches destination formatting. Here's the delema, when I copy the date and press Ctrl V, the macro does not work, however when I go in and run the macro manually (go into macros, select "Paste Values" then hit run, it works perfectly. Can someone take a look at this and see where I am going wrong here...
Module 1
The macro below is supposed to automatically format the data so when I paste using Ctrl + V, it matches destination formatting. Here's the delema, when I copy the date and press Ctrl V, the macro does not work, however when I go in and run the macro manually (go into macros, select "Paste Values" then hit run, it works perfectly. Can someone take a look at this and see where I am going wrong here...
Code:
Sub Auto_Open()
Application.OnKey "^v", "PasteValues"
End Sub
Sub Auto_Close()
Application.OnKey "^v"
End Sub
Module 1
Code:
Public Sub PasteValues() ' Keyboard Shortcut:Ctrl+v
ActiveSheet.PasteSpecial Format:="Unicode Text"
End Sub