Superpat
Member
- Local time
- Today, 19:47
- Joined
- Aug 15, 2020
- Messages
- 121
Hello, in a module NumForm, I try to send a combinaison of keys to another module or a form, my form here is form_f_equilibrage . The code is +^M (Smart Indent) to indent a module.
It is possible to do that ?
Thank for your help
It is possible to do that ?
Thank for your help
Code:
Sub essaiBoucle1()
Dim wshshell As Object
Dim sModuleName As String
Dim oComponent As Object 'VBComponent
sModuleName = "form_f_equilibrage"
'Set wshshell = CreateObject("WScript.Shell")
'Set oComponent = Application.VBE.ActiveVBProject.VBComponents(sModuleName)
wshshell.SendKeys "(+^M)", True
Set wshshell = Nothing
Set oComponent = Nothing
End Sub