26. Write a VB program to create menus of MS-Word and display it onto the form.


Dim i, n As Integer
Private Sub Form_Activate()
n = Val(InputBox(“Enter the Number”))
For i = 1 To n
Load mnuFile(i)
mnuFile(i).Caption = InputBox(“Enter the Name For Menu”)
mnuFile(i).Visible = True
Next
End Sub

One thought on “26. Write a VB program to create menus of MS-Word and display it onto the form.

  1. PETER RITDUNG WAKKIAS says:

    wow! the code are perfect. i enjoy my vb program

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s