RSS Feed

Syndicate content

è possibile fare il refresh dei dati di una pivot automaticamente ogni volta che apro il "sheet" contenente la pivot stessa? Se l'unica soluzione è VBA potete scrivermi la procedura in linguaggio?

Submitted by Anonimo on Wed, 04/02/2009 - 17:08

La soluzione è VBA ma la macro la deve scrivere lei poichè il codice deve essere inserito nel suo foglio di lavoro.

Deve gestire l'evento di apertura del file Excel come spiegato nell'articolo


http://www.office-guru.com/node/82

 

e il codice da inserire nell'evento è quello che permette di aggiornare tutte le tabelle pivot presenti: si tratta semplicemente di questo comando:

 

    ActiveWorkbook.RefreshAll

 

quindi l'evento sarà:

 

 

Private Sub Workbook_Open()
    ActiveWorkbook.RefreshAll
End Sub
 

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <style> <center> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Custom Search