henkvanerp
Gebruiker
- Lid geworden
- 13 jun 2007
- Berichten
- 21
In Office Excel 2021 werkt onderstaand script prima.
Na het uitvoeren van de macro wordt button 1 geactiveerd. - ApplicationRun ThisWorkbook, Sheets("Invoer").CommandButton1_Click
Echter nu blijkt dat in Office Excel 2016 dit niet werkt.
weet iemand hoe je vanuit een macro een CommandButton1_click kan activeren?
Sub Voorbeeldbestand()
' Voorbeeldbestand Macro
Application.ScreenUpdating = False
Sheets("Help").Select
Range("A20:F79").Select
Selection.Copy
Sheets("Invoer").Select
Range("A4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("G4").Select
ApplicationRun ThisWorkbook, Sheets("Invoer").CommandButton1_Click
End Sub
Na het uitvoeren van de macro wordt button 1 geactiveerd. - ApplicationRun ThisWorkbook, Sheets("Invoer").CommandButton1_Click
Echter nu blijkt dat in Office Excel 2016 dit niet werkt.
weet iemand hoe je vanuit een macro een CommandButton1_click kan activeren?
Sub Voorbeeldbestand()
' Voorbeeldbestand Macro
Application.ScreenUpdating = False
Sheets("Help").Select
Range("A20:F79").Select
Selection.Copy
Sheets("Invoer").Select
Range("A4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("G4").Select
ApplicationRun ThisWorkbook, Sheets("Invoer").CommandButton1_Click
End Sub
Laatst bewerkt: