+ Reply to Thread
Results 1 to 6 of 6

vba loop help

  1. #1
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    vba loop help

    hi guys i wonder if you can help me, i have a loop going for some stuff however it works in activesheet so the sheet thats open however if i try to define the range to worksheet 3 which is where i want it to go all the time, it didnt work properly and started looping to the cells above instead of down, not sure what ive done, here is a snippit of the code if anyone can help me out. - I thought i defined it in Season_Formula however when i tried to run it in another worksheet and it ran over to that not to on the worksheet3 which is where im wanting it to go.

    Please Login or Register  to view this content.
    Last edited by 13lack13lade; 07-10-2013 at 02:22 AM.

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: vba loop help

    Hi 13lack13lade
    Please wrap your code, using forum tool, so is readable

    Edit: And please post a sample workbook as well. Thanks
    Last edited by wenqq3; 07-10-2013 at 02:09 AM.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    Re: vba loop help

    attached is workbook, basically i want to make sure that the loop created always pastes the content into sheet 3 (rates) so it doesnt matter what sheet the user is in when the script is run. I am also wanting to do the same loop on sheet4 that is on sheet3 however using the formulas for sheet4 with it creating lines for X amount of lines that are created for worksheet3.

    Hope that makes sense? any help would be great, it is hard because i dont exactly know how to specify to work in a specific worksheet and with sheet4 how to use the count from sheet3 to creat that many amount of lines as per date bands in columns a&b. VBA isnt my strong suit, manipulating formulas however.. lol


    PerPersonTemplate1.xlsm

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: vba loop help

    I no sure what you asking.
    1, you have problem of running Sub Season_Formula() at sheet 4?
    2. Where is sheet 4?
    3. What you want achieve in sheet 4? Can you manual do a before and after with some sample data?

  5. #5
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    Re: vba loop help

    thanks for your help however i have found my solution, i simply copied the loop for worksheet 3 into worksheet 4 and changed the range formulas to suit my needs

  6. #6
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: vba loop help

    Okie, that good

+ 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