Bernadette
04-01-2014, 12:08 PM
Hello VBA Forum,
I tried recording a macro for the following steps but I got this error "This method or property is not available because no text is selected"
Debug line: Selection.Copy
Steps to copy all red text from document into a new document
Ctrl Home (goes to beginning of document)
Find, Format (bottom left in dialog box), Font
Font Color, Red, OK
Find in, click dropdown and select “Main Document”
Click outside Find and Replace dialog box
Copy (Ctrl C)
New Document (Ctrl N)
Paste (Ctrl V)
Switch back to your document (Alt Tab)
Find in, click dropdown and select “Footnotes”
Click outside Find and Replace dialog box
Copy (Ctrl C)
Switch back to your document (Alt Tab)
Paste (Ctrl V)
Switch back to your document (Alt Tab)
Click “No Formatting” (so that Red Font is no longer in the Find box)
Close (Find and Replace)
Ctrl Home (goes to beginning of document)
Any help is greatly appreciated!
Thanks, Bernie
I tried recording a macro for the following steps but I got this error "This method or property is not available because no text is selected"
Debug line: Selection.Copy
Steps to copy all red text from document into a new document
Ctrl Home (goes to beginning of document)
Find, Format (bottom left in dialog box), Font
Font Color, Red, OK
Find in, click dropdown and select “Main Document”
Click outside Find and Replace dialog box
Copy (Ctrl C)
New Document (Ctrl N)
Paste (Ctrl V)
Switch back to your document (Alt Tab)
Find in, click dropdown and select “Footnotes”
Click outside Find and Replace dialog box
Copy (Ctrl C)
Switch back to your document (Alt Tab)
Paste (Ctrl V)
Switch back to your document (Alt Tab)
Click “No Formatting” (so that Red Font is no longer in the Find box)
Close (Find and Replace)
Ctrl Home (goes to beginning of document)
Any help is greatly appreciated!
Thanks, Bernie