Below is my vba code for calling a mailmerged word doc with data filtred for any cell under the [Status] column that contains the value 'Pending report'.
These code resulted in infinite loop of error "Excel is waiting for another application to complete an OLE action".
However, if the value to be matched is changed to one that does NOT contain any SPACE e.g. WHERE [Status] = 'Done', everything's fine.
I attempted to handle the SPACE with the following ways but to no avail:
- 'Pending'&' '&'report'
- [Pending report]
- '"Pending report"'
- 'Pending%report'
- ""Pending report""
I have try googling the solution for the whole day Any help would be much appreciated!
Please Login or Register to view this content.
Bookmarks