LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Use formula from cell in UserForm?

I'm trying to create a UserForm that will detect which row my
ActiveCell is in, then go to certain columns in that row and pull in
the formulas for those columns. The formulas are all pretty much
"=(CellRef)+/- (SomeValue)" - nothing exotic at all. I then want to
substitue a value manually typed into the Form for the cell reference
in the formula and display the result in the Form.

So if the formula in D4 is "=B4-456", the UserForm code would pull in
that formula, substitute an inputted number for B4, and display the
result of the formula in a text box or label.

My questions a
-- is there a built-in function that recognizes a formula in a cell
and lets you use it as such in VBA code?
-- is there an easy way to identify the cell reference and substitute
another variable?

Ed

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
userform and formula jeramie[_2_] Excel Programming 5 March 6th 06 11:23 AM
Userform button setting variable from formula teepee[_4_] Excel Programming 2 January 4th 06 06:59 PM
refer to a userform in a formula TimT Excel Programming 7 July 9th 05 12:05 AM
Userform with Formula Curare[_5_] Excel Programming 0 August 16th 04 01:33 AM
Userform Formula Help Needed timh2ofall Excel Programming 2 December 12th 03 10:55 PM


All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"