Macros word 2007 run time error 4605

W

wordwordy

Macros run time error 4605 the method or property is not available because
the clip board is empty or not valid.

I get the above message when I paste two pages of text in to a macro I'm
recording and formatting. I get the message when I restart my computer I
usually copy the text before I start the recording and paste it in once I
start recording.

Can anyone help with this? I would like to get rid of the error and have a
functional macro
 
G

Graham Mayor

Post your macro code with a description of what it is supposed to do. We
cannot help debug it if we don't know what it is?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
W

wordwordy

Thanks Graham.How do I post a Macro code then? It was suppose to just add
some existing pages from a doc into a macro and some text and save it with a
bit of formatting. when I turn my computer off and and log back in I then
get the error message in word when I click on the button to access the Macro
 
W

wordwordy

Do you mean the visual basic code?

Graham Mayor said:
Post your macro code with a description of what it is supposed to do. We
cannot help debug it if we don't know what it is?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>




.
 
W

wordwordy

Okay this is the code. I have removed some personal information and replaced
it with the word Personal

Sub Personal()
'
' Personal Macro
'
'
Selection.TypeText Text:= _
"I am an honest, conscientious person. I have complete confi"
Selection.TypeText Text:= _
"dence in the work my work and I have always been a good team"
Selection.TypeText Text:= _
" player and communicator in the work place. I have worked u"
Selection.TypeText Text:= _
"nder pressure in the past but always managed to achieve exce"
Selection.TypeText Text:="llent results despite the extra pressure."
End Sub
Sub test()
'
' test Macro
'
'
Selection.PasteAndFormat (wdPasteDefault)
ActiveWindow.ActivePane.VerticalPercentScrolled = 0
ActiveWindow.ActivePane.VerticalPercentScrolled = 66
Selection.MoveUp Unit:=wdLine, Count:=111
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeParagraph
Selection.MoveUp Unit:=wdLine, Count:=3
Selection.TypeText Text:="Personal"
End Sub
 
W

wordwordy

I have discovered that my macro button now acts as a paste button for
everything I copy up into the clipboard functioning just like the paste
button.
 
D

Doug Robbins - Word MVP

If you are talking about the Sub Test(), that is what I would expect it to
do.

Assuming that it was that macro that produced the error, it probably did so
previously because nothing had been copied to the clipboard.

There is nothing in either of your two macros to do that.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top