I have a macro for splitting worksheets to form separate list of data dependant of what column is specified.
This has worked perfectly well in 2003 and 2007 worksheets.
However I recently had to split a worksheet that had originally been an xml file which I had imported into excel. Apart from a couple of minor formmatting issues, all the data imported successfully. Upon running the macro, it keeps stopping with an error 400 message box.
Upon stepping through the macro I found that the error occured when it came to the following line of code
If .FilterMode Then .ShowAllData
It filtered correctly but when it came to ShowAllData, the sheet remained blank and kicked in the Error 400.
I've set the AutoFilterMode to false earlier in the macro.
Any ideas would be most helpful![]()
Bookmarks