Moderator: Tried to follow the instructions of B. Johnson in his reply to original thread "Compilation error, Sub or Function not defined" (at least module problem) and actually started getting some results. Thanks to him for the help and direction. So assume should close out as "SOLVED" since no longer a "Compilation error, Sub or Function not defined". Believe need to be more detailed in the type of problem(s) I still have, hence new thread.
Before I started making some changes in the program code logic, I got the message to display. Yeah !! but nothing further so back to the books and 'net for debugging help and among all of that I read of the "Local" window which sounded like a great tool for monitoring what was going on so opened it up and included it in the file of the latest I attached.
I entered some fictitious data to test it. (sheet 2, "Orig SH Register"). Review of first instructions showed that most was as expected, problem child appears to be the variable, "lastAddrElement" which showed 5 as the number of the last row of data when it should be 25 so I guess the syntax of "LastAddrElement = Cells(Rows.Count, 1).End(xlUp).Row" isn't right. So I would appreciate a little help for the right syntax or whatever else I did wrong. 140729 - 2115 - ExcelForum Submission.xlsm
As always, appreciate your guys time and expertise.
fairweather
Bookmarks