No. The command button runs the code from the first book "Damage Log
Analysis" which opens the second book "Innovate Damage Log", copies some data
to the first book and then closes the second book.
"LeShark" wrote:
is the userform with "commandbuton1" in the same workbook as the sheet
"vehicle records" ???
"Nigel" wrote:
A macro that i've recorded/edited/written works fine when run from VB
editor/run sub user form or keyboard shortcut but not when I assign the code
to a (Controls) button, however it will run from a (Forms) button.
I recieve the error code 1004 Application-defined or object defined error.
The code stops at Range ("R4").Select
If anyone can help i would be gratefull, i am not an IT Professional
Nigel