Inputting a function from Userform and performing that in VBA

Shreshth

New Member
Joined
Jul 28, 2024
Messages
1
Office Version
  1. 365
Hi so I want to create an application where a user can input up to 4 functions and those functions are put in like x^2, sqrt(x) and so on. Now once I input it, i want to perform the inputted function on a vector, so ln(x) is entered, then the ln of an array should be returned, how do I make it?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If it is just one of 4 functions let user select a function from some list like listbox/dropdown/optionbuttons,... and then perform operations using: Select Case construction.
If a text of exuation is to be inputted, Application.Evaluate method could be the solution for you. See: Application.Evaluate method (Excel)
 
Upvote 0

Forum statistics

Threads
1,221,537
Messages
6,160,405
Members
451,644
Latest member
hglymph

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