+ Reply to Thread
Results 1 to 3 of 3

macros run only on active sheets

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    10

    macros run only on active sheets

    Please Login or Register  to view this content.

    I created the above code which i want to run on specific sheets but in stead it runs on the active sheet

    Plz help
    Last edited by nikos325; 10-30-2013 at 09:00 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,456

    Re: macros run only on active sheets

    You need to add a Period before Range and Column references in order for them to be relative to the With statement

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: macros run only on active sheets

    it works !!
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. having problem in macros
    By sameerpatel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2012, 01:44 AM
  2. Problem with macros
    By Alex11235 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2012, 06:41 PM
  3. problem regarding macros
    By fuadk84 in forum Excel General
    Replies: 1
    Last Post: 11-30-2006, 11:09 AM
  4. Problem with Macros!
    By buzzharley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2006, 01:28 PM
  5. Macros problem with XP
    By Gretchen Hembree in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2005, 09:05 AM

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