+ Reply to Thread
Results 1 to 5 of 5

Run the macro on all the sheets except active sheet

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Run the macro on all the sheets except active sheet

    Hi,
    I am new to Vba. I have written a code which needs to run my macro on all the sheets except active sheet.

    It has to do sum on each sheet at o column. I have attched the sheet.
    Please Login or Register  to view this content.
    Thanks in Advance for your support.
    Attached Files Attached Files
    Last edited by theprincesunil; 07-04-2012 at 08:10 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Run the macro on all the sheets except active sheet

    Maybe
    Please Login or Register  to view this content.
    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Run the macro on all the sheets except active sheet

    Thank you very much shg. It is working fine. I just would like to know when ever we are using with, Should we use .code like range etc

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Run the macro on all the sheets except active sheet

    The With statement establishes a reference, and the dot operator uses the reference. It avoids a lot of duplicated code when several lines refer to the same object, and reduces the opportunities to introduce an error.

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Run the macro on all the sheets except active sheet

    Thank you once again shg....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1