Another to get hard returns in instead of: " & Chr(10) & "
Very likely you have a missing reference, in Tools / References look for a
ref marked MISSING.
As a short term fix to get out of trouble until the ref is solved try
VBA.Strings.Chr$(10)
or
VBA.Constants.vbLf
Regards,
Peter T
"StargateFanFromWork" wrote in message
...
When I've recorded a macro with text and have done the ^+Enter, the macro
records that as " & Chr(10) & ". The macros I have that do this have
worked for years without any problems. But here, in this new contract,
weird stuff is happening. I now get the error:
"Compile error: Can't find project or library"
The "Ch" in the above " & Chr(10) & " is then shown highlighted in dark
great and the title for the macro is highlighted in yellow.
What can we use in place of ^+Enter to create a hard return in a cell via
a
macro, and so that " & Chr(10) & " isn't needed?
Thanks. :oD
|