Hi there! I am currently attending an online beginner's VBA course (completely new, so please pardon me here!), and am trying to reference sheets using their code names.
I have written the following code (Office 365), but am getting the "Compile Error: Variable not defined" error when trying to run it. Would anyone know why this is so?
Sheet5.Range("A4").CurrentRegion.Copy Sheet6.Range("A4")
Thank you so much for your help in advance!
I have written the following code (Office 365), but am getting the "Compile Error: Variable not defined" error when trying to run it. Would anyone know why this is so?
Sheet5.Range("A4").CurrentRegion.Copy Sheet6.Range("A4")
Thank you so much for your help in advance!