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: 1
Default Inserting data from a form into a cell


I have several cells referencing a formula 'Prod7' such as cell D1
containing: Prod7(D10,D11) and E12 containing: Prod7(E10,E11), etc.

For simplicity's sake I'll say the function is:

---------------
Public Function Prod7(a, b)

If a = "" OR b = "" Then
Prod7 = ""
Elseif b < a then
RollChange.show
Else
Prod7 = "Text"
End If

End Function
---------------

RollChange is a form with 3 buttons. Let's suppose one of the button
contains the code:

---------------
Private Sub cmdRoll_Click()

<CELL = 100000 - a + b
Unload Me

End Sub
---------------

What I'm trying to figure out is what needs to replace <CELL in orde
for the value of the equation to be placed into the cell that calle
the 'Prod7' function. Thus if D10 = 1000 and D11 = 900 then D12 show
a value of 99,900 and if E10 = 50000 and E11 = 40000 then E12 shows
value of 90,000. This function is used in close to a hundred cell
across 12 worksheets.

Thanks for any help you can give on this, it's been bothering me fo
weeks now

--
Prometheu
-----------------------------------------------------------------------
Prometheus's Profile: http://www.excelforum.com/member.php...fo&userid=1569
View this thread: http://www.excelforum.com/showthread.php?threadid=27227

 
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
locate data from a chart by inserting data into a cell Aaron Hodson \(Coversure\) Excel Worksheet Functions 3 November 1st 07 12:12 PM
INSERTING CELL DATA IN A HYPERLINK K Excel Worksheet Functions 1 November 28th 06 01:30 PM
Inserting additional data into a cell Alec H Excel Discussion (Misc queries) 4 February 9th 06 04:46 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
inserting a date in a form alex.simms Excel Programming 3 September 28th 04 07:03 PM


All times are GMT +1. The time now is 03:41 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"