+ Reply to Thread
Results 1 to 4 of 4

VBA required!?

  1. #1
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329

    VBA required!?

    I want to setup a spreadsheet to calculate water savings. Attached is the file for the month of July. The way I have it setup right now is that when I change the year in cell "B5" (1993~2002), saving will be output in cell "B4". Then I would manually transfer this number into cells "E3:N3" with respect to the corresponding year.

    What I want to do is instead of having to do it manually everytime, I want excel to automatically output these values into "E3:N3". ie. "B5" is no longer an input, input is predefined in cells "E2:N2", output will then automatically be calculated and inserted into "E3:N3".

    Hope I am clear, any help is appreciated.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Assuming that you are on sheet Saving, the code below will complete the range E3:N3.

    How do you want this code to be actioned? Button on the sheet, sheet activation event???

    Please Login or Register  to view this content.
    HTH

    rylo

  3. #3
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329
    Hi Rylo,

    Thank you for the response. Unfortunately, I wouldn't even call myself a beginner in VBA. I am thinking F9, in addition to upon file-opening, would be a good way to activate or to re-calculate.

    How is it done?

    Thank you

  4. #4
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329
    I have setup a button for it, I think it works just fine.

    Thank you very much!

+ 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