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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,225,073
Messages
6,182,703
Members
453,132
Latest member
nsnodgrass73

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