• Privacywetgeving
    Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.

Macro's

Status
Niet open voor verdere reacties.
Ja,

Verschillende mogelijkheden :
bij openen van een werkblad, activeren van een tabblad, activeren van een cel, wijziging in een cel, ....
 
Sorry maar ik snap er totaal niets van.

Mijn excel kennis is nihil
 
Kun je macro's automatisch laten uitvoeren ?

Auto run macro excel… Do you want to run an excel macros automatically when the file is open or close?

Microsoft Excel provide us the opportunity to run a macro automatically every time we open or close the excel workbook file, using the event Workbook_Open and Workbook_BeforeClose.

In the Microsoft Visual Basic Editor page, in the ThisWorkbook module, we simply create two new sub procedure called Workbook_Open and Workbook_BeforeClose. In both sub procedure, we call the method that we want to run automatically when the workbook is open or closed.


Private Sub Workbook_Open ()

Call onFileOpenMacro

End Sub

Private Sub Workbook_BeforeClose (Cancel As Boolean)

Call onFileCloseMacro

End Sub
In this example, when the workbook is opened, we will automatically run macros called onFileOpenMacro, we also automatically run macros called onFileCloseMacro just before the excel workbook is closed.
 
Als je kennis nihil is, hoe wil je dan dat wij je uitleggen hoe een je een macro automatisch start?
Probeer anders adhv een voorbeeldbestandje uit te leggen wat je wil bereiken.

Mvg

Rudi
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan