folks,
good day
any one know how i can view the code in the worksheet code moddule
I want to do it programatically
I want to get to the view code in active sheet
Sub ViewActiveSheetCodeModule() Application.VBE.ActiveCodePane.ActiveSheet.Show ' < Active sheet code module eg sheet1, or Sheet2 etc VBE.ActiveSheet.MainWindow.Visible = True End Sub macro recorder only gave this when i did right click > view code Sub Macro2() ' ' Macro2 Macro ' Sheets("Sheet2").Select End Sub
Sheet > Right click > View Code
I would like to have a keyboard shortuct that can do this, i hate having to right click all the time
I looked everywhere to find this but not yet