VBA help

XtremeMaC

New Member
Joined
Jan 25, 2011
Messages
9
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!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: VBA help
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top