FlowChart - VBA Sub

akindofmagic

New Member
Joined
Sep 12, 2010
Messages
15
Hello

Here is a Sub, and its FlowChart. My question is: The FlowChart is correct?

Code:
Sub sinus()
Dim x As Double, dblSin As Double
   x = Application.InputBox("x =")
   For i = 0 To 50
       TmpSin = dblSin
       dblSin = dblSin + (-1) ^ i * (x ^ (2 * i + 1)) / (WorksheetFunction.Fact(2 * i + 1))
       If dblSin = TmpSin Then Exit For
       Debug.Print dblSin
   Next i
End Sub
49918


4991855497_b1b7c35cbf.jpg

%3E
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,226,172
Messages
6,189,428
Members
453,544
Latest member
TianDjaafar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top