NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Output form and utility options

Output Data, printing data to the printer, keep hard copy of the data
Exporting the data to a file, example putting it in a more specialized process, you keep adding raw data to it

printing data to printer
to determine number of points in data set use pointstotal = WorksheetFunction.Count(this range)
Select specific range, then print

Insert userform - simoutputform , caption is output

Put a couple of buttons

Back Button - bottom right
Save - Bottom middle
Print button - bottom left

in back button Unload ME and Simprocessesmenu.show

Text box, top middle

Interarrival time button, Service Time button

in this output initialize, copy the code from the analysis box

in text box of analysis copy paste into the output, this will be the different data types

Button with circle, InterarrivalValopt.Value = True, ServiceValopt.Value = False

For the initalize
done = 0, currow = 10, curcol = 1,



Calculate button code:
if interarrivalval.opt.Value = True Then
this range = Range of the data set Range(Cells(11, 5* (thisdataset -1)+2, Cells(100,5*(thisdataset - 1) + 2)).Select
else
range of the service set
End if



BAck to output form, go to the print button
copy calc code into the print
under interarrival range
arrtotal = WorksheetFunction.Count(this range)
selecting range to print out
Range(Cells(12, 5 * thisdataset + 1) + 2), Cells(11 + arrTotal, 5 * thisdataset -1) + 2))
same under the service time in the range to print out
except final + 2 is + 5 - both cases
for printout of service
Range(Cells(11,5 * (thisdatsset -1 ) + 5 ), Cells ( 10 + servicetotal, 5 * (this dataset - 1) + 5 ))
also important to note that arr total is service total in this section

Copy paste print code into the save button code
get rid of the print ranges
under the arrtotal = worksheetfunc
currow = 12
curcol = 5 * (datasettotal -1 ) + 2
in the service section
currow = 11
curcol = 5 * (dataset total -1 ) + 5


(break key stops program)
under the if on the save section:
Open filenametxt.Text 'opening the file'
done = 0 - initializing
Do
'no more data'
if cells(currow, curcol) = "" Then
done = 1
Else
' we want to send the information to the file'
'outputting the information'
print #1, format(cells(currow,curcol) "0.00") with more 0s more data
currow = currow + 1
End If

Loop until done = 1
Close 1

insert textbook under hte service times
label is as filename.Text

Include data saved successfully mssg box

Workbook Utility Operations
under main menu add another box called utilities

make new userform called utilities
have a back button that sends us back to the main menu at the bottom
Save button - top
Print workbook Button - under the save button
code backbut is unload me and main form show
print is thisworkbook.print
Save button is ThisWorkbook.Save


also in the simulation data collect - when you click the back button have it save

Assignment for today
stuff that he did today is not going to be on this
you need to create data analysis



     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.