Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#1: Write a macro to Convert Units from inches to cm and link the macro to a button to run the code. #2: Resultant Force

#1: Write a macro to Convert Units from inches to cm and link the macro to a button to run the code.

#2: Resultant Force and Angle: Using the code, fill in the blue Resultant box with the force and angle. Give instructions on how to run the code

student submitted image, transcription available below

#3:

student submitted image, transcription available below

#4:student submitted image, transcription available below

#5:student submitted image, transcription available below  
 
 

Public Function Resultant(vh As Range, vv As Range) As Variant Dim i As Integer Dim Nrows As Integer Dim SumVh As Single Dim sum Vv As Single Dim RF As Single Dim Rtheta As Single Dim Result(2) As Single Nrows = vh.Cells.Count SumVh = 0 sumVv = 0 For i = 1 To Nrows SumVh = SumVh + vh(i) sumVv = sumVv + vv(i) Next i RF = Sqr(SumVh ^2 + sumVv^ 2) 'radians Rtheta Atn(sumVv / SumVh) Rtheta = Atn(sumVv / SumVh) * 180 / 3.1416 'degrees 1 = Result(0) = RF Result (1) Rtheta Resultant Result End Function

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

Explanation given a question on vba macros for excel please refer to further parts for answers Explanation convert units from inches to cm Go to developer tab and select insert button Press ALT F11 to ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

More Books

Students also viewed these Programming questions