This is code I have used in similar situations many times before, without problems.
However, the statementnow generates the general error 1004. The context is shown below.Please Login or Register to view this content.
Curiously, if I substitutePlease Login or Register to view this content.
the code proceeds without hindrance, but that isn't really a suitable work around.Please Login or Register to view this content.
Advice please.
Bookmarks