Is there any difference between Thisworkbook and ActiveWorkbook.
Example code :
Sub workbook_name()
MsgBox Thisworkbook.name
End Sub
Sub active_name()
MsgBox Activeworkbook.name
End Sub
Both will return the same output,
Is there any other instances where we have to use particularly ThisWorkbook where ActiveWorkbook doesn't work
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…