1. Кладу файл в _любое_ место
2. Открываю
3. Ctrl-R - форма
4. Жмакаю энное число раз на "Создать"
5. Ctrl-R - форма
private withevents xl as excel.application
sub init
set xl=application
end sub
private sub xl_SheetBeforeDoubleClick(Sh As Object, Target As Range, Cancel As Boolean)
msgbox sh.name
end sub
Option Explicit
Private Sub Workbook_Open()
Set myClass = New Class1
End Sub
Option Explicit
Public myClass As Class1
Option Explicit
Public WithEvents xl As Application
Private Sub Class_Initialize()
Set xl = Application
End Sub
Private Sub xl_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
MsgBox Sh.Name
End Sub
Сейчас этот форум просматривают: SemrushBot и гости: 47