+ Reply to Thread
Results 1 to 3 of 3

"For" Commands for worksheets

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    Coventry, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    "For" Commands for worksheets

    Hi All
    Basically I have a spreadsheet that works out and scores companies on their Year to Year Finiacials. Now I would like to add another (Worksheets) year to this existing spreadsheet. The code reads:
    For j = 1 To 2
    at the moment for it to run some functions on worksheets 1 (year1) and 2 (year2).

    My Problem: beucase I like to have year3 to be added to the equation, in the Project Explorer Year3 is Sheet9. How do I make so it'll read Sheet9 aswell?


    Please Login or Register  to view this content.

    I think I covered everything. Hope to hear from you soon.
    Regards
    Keung
    Last edited by Eoshap; 02-23-2010 at 06:49 AM. Reason: Had to Edit as Code Tag. Sorry Guys
    Any pointers will help. Thank you
    Keung

  2. #2
    Registered User
    Join Date
    02-19-2010
    Location
    Coventry, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: "For" Commands for worksheets

    Here are the files in cause you like to see. 2year original works

    3year is where it needs working on

    Note: CDT file has to be place in the same directory

    Regards
    Keung
    Attached Files Attached Files
    Last edited by Eoshap; 02-19-2010 at 12:04 PM.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: "For" Commands for worksheets

    Eoshap

    Your post does not comply with the Forum Rules you agreed to follow. Per Rule #3, all VBA code must be wrapped in code tags. Please edit your prior post to add the tags, after which possible solutions will be suggested.

    Rule #3
    Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button. For more information about these and other tags, click here.
    Last edited by Palmetto; 02-19-2010 at 06:29 PM.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ 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