Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi guys,
I'm not sure if this can even be done so please excuse my ignorance if it can't. I currently have a macro that is used to clean phone numbers. This is a Word macro and is used to remove all non numerical characters. I receive an Excel spreadsheet that contains a whack of phone numbers in a number of fields. I want to clean these phone numbers by using a macro to copy from excel to word, clean with the word macro, and then return back to the relevant excel column. The Word macro doesn't like to play ball like this. Works fine if I do it manually (copy the column, paste it into Word, run the macro, copy it back and then paste it into a text column) but when I try to test it with the excel macro, it's a no go. I receive an error message - Run-time error '1004': Pastespecial method of Worksheet class failed. I presume (seeing as word didn't even open) that this aspect just didn't happen, hence causing the problem. I can't perform the clean in Excel as it removes all leading zeros, which I need.... Any help, or a simple 'No chance champ', is appreciated. Thanks, Chaps. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7 | Setting up and Configuration of Excel | |||
Excel Throwing Circular Errors When No Errors Exist | Excel Worksheet Functions | |||
Print errors with Word documents in Excel spreadsheets | Excel Discussion (Misc queries) | |||
passing arguments from an excel macro to a word macro | Excel Discussion (Misc queries) | |||
Macro - Open Word with Excel macro | Excel Discussion (Misc queries) |