+ Reply to Thread
Results 1 to 2 of 2

VBA help

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    Michigan, USA
    MS-Off Ver
    O365 Insider (Beta Channel)
    Posts
    8

    Question VBA help

    Sorry for the title, couldn't think of a short yet more descriptive one

    Hello, it's one of those days where it's 1am and I'm trying to accomplish something, yet failing miserably. Trying out functions, but obviously I can't pass value to Excel. Yet, couldn't figure out which cell the Sub should take it's values from. What I'm trying to do is for Excel to look at last row or any row for that matter. Not sure if I should put it into the SheetCalculate or SelectionChange or something..

    I've a sheet where at column CB, CC, CD (user input fields) has different integer values for scenarios in each row. I'm trying to tabulate different values for these 3 inputs.
    Ex: function calculate (CB10, CC10, CD10) (user input field) => calculate ($1, $2, $3)

    These are to be fed into the T20, U20, V20 where Excel built-in functions will work it's magic to throw out results in AK60, AL60, where I'd like to show up at CE, CF...
    Ex: T20, U20, V20 = CB10, CC10, CD10 = $1, $2, $3

    After the scenario, AK60, AL60 = $156, $2000 => CE, CF = $156, $2000

    I can't possibly put the calculations in the sheet into VBA. (A1 thru CA60)

    Hope this makes sense, otherwise I'll have to cleanup the Excel and attach..

    TIA!
    Last edited by XtremeMaC; 09-25-2021 at 01:24 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,389

    Re: VBA help

    Administrative Note:

    Sorry - you know yourself, it’s far too generic at the moment.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  2. Using an IF Function with 3 returns?
    By drronan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-04-2014, 03:21 PM
  3. Function returns #VALUE
    By sprites in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 04:58 AM
  4. [SOLVED] User defined function returns an error on a standard function used in it.
    By pb48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 01:35 PM
  5. Sum function returns 0, sum(value(...) returns #value
    By AileenR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2013, 11:13 PM
  6. [SOLVED] Using ROW function inside of both an Indirect and Index function returns #VALUE
    By xandermacleod in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-11-2012, 06:22 PM
  7. [SOLVED] VBA function returns #NAME?
    By mogens in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2006, 01:10 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