Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default Is it possible to display cell value on a form?

I would like to have a user enter values in a form and have the form display
calculated value (based on some of those entries) after a button click, then
add all the values (included the calculated one) into a spreadsheet.

How can I do this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Is it possible to display cell value on a form?

Hi Bill,

See Debra Dalgleish's tutorials at:

http://www.contextures.com/xlUserForm01.html

and

http://www.contextures.com/xlUserForm02.html


---
Regards,
Norman



"Bill" wrote in message
...
I would like to have a user enter values in a form and have the form
display
calculated value (based on some of those entries) after a button click,
then
add all the values (included the calculated one) into a spreadsheet.

How can I do this?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is it possible to display cell value on a form?

What do you mean by form - A Userform


Private Sub CommandButton1_Click()
Dim i as Long, s as String
Dim sum as Double
for i = 1 to 5
s = Userform1.Controls("TextBox" & i).Value
if isnumeric(s) then
sum = sum + cdbl(s)
end if
Next i
Userform1.Textbox8.Value = Format(sum,"#,##0.00")
Worksheets("Sheet2).Range("B9").Value = sum
End Sub

--
Regards,
Tom Ogilvy


"Bill" wrote in message
...
I would like to have a user enter values in a form and have the form

display
calculated value (based on some of those entries) after a button click,

then
add all the values (included the calculated one) into a spreadsheet.

How can I do this?

Thanks.



Reply
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
Display contents of a cell in a user form text box -- Excel 2003 VBA hiskilini Excel Discussion (Misc queries) 7 April 4th 23 10:22 AM
Shortcut key to display change the display from displaying cell values to cell formulae Adrian[_7_] Excel Programming 3 September 14th 04 12:07 PM
Customize Form To Display Lists EvereadyBunnee Excel Programming 0 May 13th 04 05:42 AM
Form display errors Stuart[_5_] Excel Programming 0 December 17th 03 08:37 PM
Display many instances of the same form Warrio Excel Programming 3 October 7th 03 10:56 AM


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