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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,937
Office Version
  1. 365
Platform
  1. Windows
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.
 

Forum statistics

Threads
1,148,145
Messages
5,745,049
Members
423,917
Latest member
Frank1931

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
Top