Hi,
I have a query regarding a VBA code that is ActiveWindow.DisplayGridlines = True/False.
Why do I need to refer to the active window in the above mentioned code line? If I give a reference to a worksheet that is not active it doesn't work e.g. if write Sheets("Sheet1").DisplayGridlines=False, it doesn't work and give me an error "Run-time error '438': Object doesn't support this property or method".
Kindly help me know the logic behind this.
Thanks and regards,
DJ
I have a query regarding a VBA code that is ActiveWindow.DisplayGridlines = True/False.
Why do I need to refer to the active window in the above mentioned code line? If I give a reference to a worksheet that is not active it doesn't work e.g. if write Sheets("Sheet1").DisplayGridlines=False, it doesn't work and give me an error "Run-time error '438': Object doesn't support this property or method".
Kindly help me know the logic behind this.
Thanks and regards,
DJ