Home > Excel Tutorial > Sheet Management With Macro – Assigning Macro To Shortcut Key

Sheet Management With Macro – Assigning Macro To Shortcut Key

         If F9 Key is pressed on the any sheet, the userform is opened.Any sheet or sheets in workbok can be deleted and can be added new sheet to workbook with the userform.

With combobox can be navigated between sheets of the workbook. If selected any sheet from combobox ,that sheet’s tab is activated .

The created codes is to assign macro F9 key :
“Sub Auto_Open()
Application.OnKey “{F9}”, “Show”
End Sub
 Sub Show()
    UserForm1.Show
End Sub”

The created codes is to list worksheets name on listbox and combobox :
“…
Dim sayfa As Integer
    For sayfa = 1 To Sheets.Count
        ListBox1.AddItem Sheets(sayfa).Name
        ComboBox1.AddItem Sheets(sayfa).Name
    Next sayfa
….

  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: