Question

Need the VBA code for excelTime to Burn Calories Assume you are afiness trainer and would lhke to help your clients better calculate the number of calorStart Variable List Goal (Double) desired loss 7 Calories (Double) calories burned thus far number of minutes run Minutes (

Time to Burn Calories Assume you are afiness trainer and would lhke to help your clients better calculate the number of calories they burn on your treadmill Your treadmill burns 89 calories per minute. You desire to create a program which asks the person to enter the desired number of calories to burn and output the number of minures required on your treadmill Note: They might burn slightly more calories than their goal unless their goal is a multiple of 8.9 Calories to Burn Sample Interface Calories to Bum Goal Total Minutes Calculate Minutes
Start Variable List Goal (Double) 'desired loss 7 Calories (Double) 'calories burned thus far number of minutes run Minutes (In Input Goal Calories 0 Minutes-0 Print Minutes Goal > Calories Fal True Calories-Calories+8.9 Minutes- Minutes1 End
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Sub Button1_Click()
Dim Goal As Double
Dim Current As Double
Dim Calories As Double
Dim Minute As Integer
Calories = 0
Minute = 0
Goal = Range("F7").Value

If Goal > Calories Then
result = Goal * 1 / 8.9
Range("F8").Value = result
End If
End Sub

自Microsoft Visual Basic for Applications-Book1.xltm-[Sheet 1 (Code)] 臭File Edit yiew Insert Format Debug Run looks Add-ins yiif you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)

Book1xdtm Excel Sign in Insert Page Layout Formulas Data Review View Developer Add-ins Help Foxit PDF Power Pivot TeamTell me

Add a comment
Know the answer?
Add Answer to:
Time to Burn Calories Assume you are afiness trainer and would lhke to help your clients better c...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT