• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to define worksheet (active worksheet will also do)

ThrottleWorks

Excel Ninja
Hi,


I am trying to define a worksheet, but I am geting a bug.


I am using following line


Dim Data as worksheet

set Data = activeworksheet


I am getting Run Time Error 424

Object Required.


I have checked the sheet name, it is correct, I know I am making some silly mistake.


Can anyone help me in this please.
 
Back
Top