Discussie: Excel - random cell
Los bericht bekijken
Oud 21 juni 2006, 18:08   #15
Firestone
Secretaris-Generaal VN
 
Firestone's schermafbeelding
 
Geregistreerd: 5 juni 2004
Locatie: Antwerpen
Berichten: 25.793
Standaard

Citaat:
Oorspronkelijk geplaatst door Nick6502 Bekijk bericht
Hellep, Firestone.


Jij bent een echte cultuurbarbaar.
  1. Je moet de macro in een standaard-module plaatsen, niet in een klassemodule.
    In de VBA-omgeving kies je hiervoor in het menu Invoegen-->Module.
    VBA maakt dan een nieuwe module aan met naam Module1 (of zoiets).
    In deze module plaats je de macro.
    Verwijder hem uit de klassemodule waar ie nu staat.
  2. Heet jouw werkblad sheet1? Zo neen, pas de instructie
    Const Bereik = "sheet1!A1:A50"
    aan.
Succes!

Bij mij werkt het.
Op het werk op een Engelse Excel-2003, thuis op een Nederlandse Excel-2000.
__________________
The method of science is tried and true. It is not perfect, it's just the best we have. And to abandon it, with its skeptical protocols is the pathway to a dark age. -- Carl Sagan
Firestone is offline   Met citaat antwoorden