Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15628

Programmatically Apply The Same Formula To Each Cell In A User Selected Range

$
0
0
I am using VS 2008, and coding in VB.Net for an Excel 2007 Add-In.

After the user selects a range of cells, they can open a form where they are asked to enter a custom formula into a text box. Using VB.net, how can I have that custom formula applied to every one of the users selected cells? For example, the user already has numbers in each of the selected cells. But, they need to increase the value in each cell by 25% programmatically.

I have the form created. But, I am at a loss as to how to even start finding the users selected cell range. Not to mention how to apply their custom formula to the values in each of the selected cells.

Any suggestion?

Viewing all articles
Browse latest Browse all 15628

Trending Articles