P
Puzzled MS User
I want to record a macro in Visio 2007 to paste unformatted text (Paste
Special > Unformatted Text). I can record it okay and assign to the keyboard
but it won't work if I try to use it? I have tried to edit the macro with
the VB mark-up using a similar macro created in MS Word:
Sub PasteText()
'
' PasteText Macro
On Error GoTo ErrorHandler
Selection.PasteSpecial DataType:=wdPasteText
Exit Sub
ErrorHandler:
Beep
End Sub
But this just gives an error beep.
Also - how do I do the following:
1) Create it so it works on all Visio documents not just the one I'm in when
recording it?
2) Assign it to a toolbar button (I have tried to Customise toolbars but
there is no option to add a macro and I can't move it from "Tools > Macro >
NewMacro > PasteText" as only an option appears for Macro List rather than
the actual list of macros?
Any help is appreciated.
Special > Unformatted Text). I can record it okay and assign to the keyboard
but it won't work if I try to use it? I have tried to edit the macro with
the VB mark-up using a similar macro created in MS Word:
Sub PasteText()
'
' PasteText Macro
On Error GoTo ErrorHandler
Selection.PasteSpecial DataType:=wdPasteText
Exit Sub
ErrorHandler:
Beep
End Sub
But this just gives an error beep.
Also - how do I do the following:
1) Create it so it works on all Visio documents not just the one I'm in when
recording it?
2) Assign it to a toolbar button (I have tried to Customise toolbars but
there is no option to add a macro and I can't move it from "Tools > Macro >
NewMacro > PasteText" as only an option appears for Macro List rather than
the actual list of macros?
Any help is appreciated.