+ Reply to Thread
Results 1 to 6 of 6

Help with i counter

  1. #1
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    Help with i counter

    Hi, I am trying to write a macro that automatically activates the sheet that has the same name in Cell A14 to do some changes.
    It should loop from A14 through A36 and do the same thing each time.
    this is the code I have written, but it does not work.
    Please Login or Register  to view this content.
    I also uploaded a sample of my workbook.
    Attached Files Attached Files

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Help with i counter

    Instead of
    Cells(" & total & ", 2)
    try by using..
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Help with i counter

    Try this code
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Help with i counter

    @ Debraj Roy, it does not work

  5. #5
    Forum Contributor
    Join Date
    07-08-2012
    Location
    beirut
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Help with i counter

    It doesn't work the way I want it, I only want it to make the changes to the employees who have a status P

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Help with i counter

    Change this line from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Last edited by arlu1201; 09-02-2013 at 07:40 AM.

+ 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. Can you put a counter to 001 rather that 1?
    By v2jtb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2010, 03:13 PM
  2. [SOLVED] Row Counter
    By Lionel B. Dyck in forum Excel General
    Replies: 2
    Last Post: 08-03-2006, 04:05 PM
  3. [SOLVED] counter
    By Haza in forum Excel General
    Replies: 2
    Last Post: 01-20-2006, 04:35 PM
  4. Counter
    By Sdbenn90 in forum Excel General
    Replies: 4
    Last Post: 01-09-2006, 07:50 AM
  5. [SOLVED] Counter
    By Polina in forum Excel General
    Replies: 2
    Last Post: 05-27-2005, 05:05 PM

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