Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Volume Calculator - Button

Help with pop up window/2nd sheet within workbook

I would like for a rate calculator I've put together in Sheet 2 to pop up
when button clicked Sheet 1. After the dimensions are keyed in, I would
like the calculated figure to populate a cell with-in Sheet 1 when button to
return to Sheet 1 clicked.

1 issue is I would like the user to have the option of keying in directly to
figure if already known or have the calculated figure from Sheet 2 populate
upon return.

This figure is the base for other calculations with in Sheet 1.

(Minimum experience with Macros/Visual Basic - Mainly 'Macro Recorder')

Your trusted assistance greatly appreciated.

Steven

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Volume Calculator - Button


Do you have to use sheet two? how many variables are you playing with?

this might be something you can use Input box..

--
Bearacad

-----------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...fo&userid=3501
View this thread: http://www.excelforum.com/showthread.php?threadid=55623

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Volume Calculator - Button

Bearacade,

No unless functional restrictions prevent.
Multitude of calculcultaions performed to produce desired result.

Variables though limited to 3 items



"Bearacade" wrote:


Do you have to use sheet two? how many variables are you playing with?

this might be something you can use Input box...


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=556231


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Volume Calculator - Button


I think from what you are saying that 3 variable must be entered for the
calcuation... So let's see if this will help you..

Private Sub CommandButton1_Click()

Dim L As Integer
Dim H As Integer
Dim W As Integer

L = InputBox("Please enter the Length:", "Prompt for Length")
H = InputBox("Please enter the Height:", "Prompt for Height")
W = InputBox("Please enter the Width:", "Prompt for Width")

Sheets("Sheet2").Range("A1") = L
Sheets("Sheet2").Range("A2") = H
Sheets("Sheet2").Range("A3") = W

Range("A1") = L * H * W

End Sub


This will make it so that once someone clicks on the button, it will
prompt you for the 3 variables, populate the cells in Sheet2, calculate
the volumn and enter it in Sheet 1

If you don't need to populate the cells in sheet2, delete those three
lines.

and check the Cells as you need


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=556231

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
Weight & volume Richard Excel Discussion (Misc queries) 4 June 10th 09 03:46 AM
Weight & Volume Richard Excel Discussion (Misc queries) 1 June 8th 09 11:29 PM
Adjust Audio Volume AP[_3_] Excel Programming 1 June 22nd 06 10:48 AM
Sound Volume control Dave F.[_5_] Excel Programming 1 February 14th 06 05:51 PM
choose the right volume farsta_online Excel Programming 4 August 20th 04 02:19 PM


All times are GMT +1. The time now is 03:12 AM.

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"