Elencare i nomi degli oggetti di Excel

Download PDF

A volte capita di avere a che fare con molti oggetti su un oglio di Excel quali linee, rettangoli, cerchi, frecce e volerli manipolare.

Il metodo semplice è di assegnare ad ogni oggetto un nome e successivamente manipolarlo in VBA attraverso le proprietà dell’oggetto.

In VBA per “indirizzare” un oggetto di un foglio di lavoro si usa il costrutto:

ActiveSheet.Shapes.Range(Array("NOME_OGGETTO")).Select
 With Selection.ShapeRange.Fill
 .Visible = msoTrue
 .ForeColor.ObjectThemeColor = msoThemeColorAccent2
 .ForeColor.TintAndShade = 0
 .ForeColor.Brightness = 0
 .Transparency = 0
 .Solid
 End With

In questo caso si cambia il colore dell’oggetto che ha per nome “NOME_OGGETTO“.

Questo procedimento funziona bene se si conoscono i nomi degli oggetti sul foglio di lavoro.

Ciò non è possibile in modo banale e sopratutto non è semplice esportare in un foglio excel i nomi per utilizzarli ad esempio nella macro che ne deve cambiare il colore. Ciò rende il tutto molto complicato perchè la macro dovrebbe conoscere tutti i nomi di tutti gli oggiettiprsenti sul foglio di lavoro senza leggerne i nomi..

Questa semplice macro crea un foglio di lavoro e inserisce la lista di tutti i nomi di tutti gli oggetti presenti in un foglio di lavoro “sorgente”.

 

Sub ListWorkSheetNamesNewWs()

Dim xWs As Worksheet
Dim Current As Worksheet

Dim i As Long

On Error Resume Next

Application.DisplayAlerts = False
xTitleId = "OFFICE-GURU List NAMES"
Application.Sheets(xTitleId).Delete
Set Current = ActiveSheet
Application.Sheets.Add Application.Sheets(1)
Set xWs = Application.ActiveSheet
xWs.Name = xTitleId
Current.Activate

i = 1
For i = 1 To ActiveSheet.Shapes.Count
 xWs.Range("A1").Offset(i, 0).Value = ActiveSheet.Shapes.Range(Array(i)).Name
Next i

Application.DisplayAlerts = True

End Sub

Per usarla è molto semplice:

  1. Importate la macro nel vostro ambiente excel
  2. andate sul foglio di lavoro per cui volete creare la lista degli oggetti
  3. premete ALT F11
  4. Eseguite la macro

un nuovo foglio di lavoro viene creato con l’elenco dei nomi degli oggetti presenti sul foglio di lavoro su cui si è eseguita la macro alla colonna A.

Per concludere l’articolo alcuni consigli di manuali sulla manipolazione degli oggetti in Excel:

Attenzione solo che se si ragguppano gli oggetti attraverso il comando “Raggruppa” o “Group” in inglese, la macro riporterà il nome del “gruppo” senza aprirlo nelle sue parti costituenti (il che non avrebbe senso perchè l’utente ha appunto creato un gruppo e quindi ci si aspetta che lo voglia manipolare come gruppo appunto)

Scarica File di Esempio: List Objects in Excel

La macro è stata adattata da una simile del sito ExtendOffice

Cambiare settaggi VBA per eseguire MACRO

Download PDF

Succede spesso che le macro in excel non vengano eseguite come ci si aspetta.

spesso il problema nasce dal settaggio per eseguire le macro dal centro di controllo di Excel.

qui un semplice video che mostra come modificare tali settaggi ed far eseguire le macro Excel.

Personalmente consiglio il terzo settaggio ma a seconda della vostra situazione ed esigenze, altri settaggi potrebbero essere migliori.

Buona visione.

 

Il video mostra un file di esempio che esegue una macro all’apertura, come spiegato in questo articolo..

Eseguire macro all’apertura di un file

Eseguire macro all’apertura del foglio Excel

Download PDF

Breve tutorial per vedere come creare una macro che viene eseguita automaticamente quando il file excel viene aperto

Questa funzionalità è per esempio utile quando si vuole eseguire un file excel a intervalli precisi, e si inserisce il file excel nello scheduler di Windows.

Windows apre il file excel ma succede ben poco se il file excel non esegue la macro.

Questo trucco consente di eseguire la macro e automatizzare completamente la gestione del file excel che verrà eseguito, aprira’ la macro, farà cosa è pensato per fare e se nell’ultima riga della macro si inserisce un

workbook.close

allora il file si chiuderà da solo senza disturbare il PC e il suo utilizzatore oltre il tempo necessario per eseguire la macro.

Qui qualche riferimento al metodo indicato:

vediamo qui il video del tutorial:

è necessario gestire un evento di Excel. é tutto molto semplice ma se volte riferimenti su questo aspetto, potete leggere ad esempio questo libro:

Come potete vedere dal video, il processo si blocca quando la macro non è considerata sicura o i settaggi di esecuzione delle macro VBA non sono corretti.

Qui trovate un secondo tutorial per cambiare i settaggi delle macro

Training for Excel and VBA in Lynda

Download PDF

Here a nice training course in Lynda for Excel and VBA to learn how to manage and data:

You can learn how to filter data, open and closing files, use built-in worksheets functions in VBA, create charts and forms.

It is pretty simple but many tricks are nice and not everybody knows them!

As always you have voice transcripts, the list of chapters so you can jump from one to the other and take advantage of what you really need and finally a notebook for you directly online.

Happy listening!

Add-in per velocizzare il lavoro

Download PDF

Ci sono una moltitudine di add-ins che possono permettere una migliore e/o piu’ accattivante presentazioni dei dati attraverso la suite office di Microsoft.

Questo tool permette di velocizzare in maniera impressionante la produzione di slides, con moltissimi tool per manipolare immagini e forme, librerie di icone, immagini, foto per presentazioni di impatto.

consigliato!

http://www.powerusersoftwares.com/

Un backup per le formule

Download PDF

Accade a volte in Excel ® che le formule vengano modificate e che non sappiamo ricostruire il contenuto originale del nostro file. Un modo sicuro e alternativo per proteggere il contenuto delle formule è rappresentato dal file allegato: chi desidera farne uso può costruire i propri fogli “attorno” al file che è allegato al seguente articolo.

Il progetto VBA, anche se piuttosto semplice e oramai datato (anno 2005), permette di salvare sul foglio “Formulas” una tabella contenente la posizione e il contenuto di TUTTE le formule del nostro foglio di lavoro e di ripristinarle in caso di bisogno. Un Button sul foglio apre una piccola UserForm tramite la quale l’utente deve prima creare il backup e quindi in seguito, sempre attraverso di essa, può ripristinare, in automatico, il contenuto delle formule che ha salvato.

Penso che il nostro progetto possa mostrare uno dei tanti modi in cui Excel ® può rapidamente ed efficacemente essere potenziato tramite il VBA, e questa è una delle caratteristiche che prediligo del mio programma preferito.

Agli utenti con una certa esperienza l’augurio di una buona lettura di codice, agli altri un piccolo strumento per facilitare il lavoro quotidiano.
BackUp.xlsm

Whereas it’s a fact that Answers almost any decent SEARCH ENGINE MARKETING jockey could very well improve your evaluations in the ny, to really assist the networking exam target demographics you want to locate someone who can be an expert while in the social media dumps 9tut natural environment of the town. Some agencies will talk to you especially on hito tags, but will advise overall WEB OPTIMIZATION services. An WEBSITE SEO company it doesn’t realize it won’t really really know what they are undertaking. When looking for an WEB OPTIMIZATION package, expense should not be replacing a whole determining consideration. The principal complexes are the school church with Santa Karen de la Search engine marketing, the Dominican monastery, along with the church for San Ignazio, built covering the cavern (cueva santa) wheresoever Ignatius sobre Loyola wasted most of the season 522 with penitentiary routines and the formula of the Exercitia spiritualia. Using SEO procedures, such exam test center as by using highly dug keywords, and also by adequately marketing Exam Guide your internet-site, you’ll improve your tourist count. Go and visit these extremely fast facts that will relate to selection specific SEARCH ENGINE MARKETING. SCALP – Typically the section capitulo 8 examen resuelto of a great HTML chapter 9 exam answers 2018 contract enclosed via the HEAD indicate includes it of the Braindump site, any hito tags with regard to pass an exam in spanish SEO search engine optimization, and other Exam Questions various elements that will typically present search engines using information about the article. Nearby SEO programs are often more affordable than other forms of SEO 312-50 Question and Answer offerings. SEARCH ENGINE RANKING OPTIMIZATION Design Options exam roadmap offers 2 packages created specifically for regional SEO. Most website development firms supply search engine optimization expert services (SEO). IT AGAIN professional using SEO competencies seeks pro position having start-up company. Insurance that you have informative and professionally penned SEO articles can make the between a person choosing your enterprise over the competition. Exam Labs The main buildings could be the collegiate the bible of The bearded man Maria entre ma Seo, pass exam certification the main Dominican monastery, and the community center of San Ignazio, produced over the cavern (cueva santa) where Ignatius de Loyola spent a lot of the year 522 in penitentiary exercises and also the composition connected with his Exercitia spiritualia. That is why exam vs zero it’s essential to understand the conventional SEO costs, shop Brians Dumps around, and ensure that up 10th exam pass percentage 70-346 Pass the WEBSITE POSITIONING firm you actually hire provides only that which you really need for a price you can afford. Qualified marketing on the Internet exam 600-455 on to a specific geographically targeted crowd takes mindful planning plus exam answers chapter 2 unique WEBSITE SEO techniques. The massive volume of constructive buzz with regards to SEO with exam history business-centered locations like Downtown relates to positioning an online program into put that drs customers serious about your services or goods to your website. With new options for tailoring SEO Dumps to fit individual businesses needs, it makes more sense exam voucher code than ever to consider SEO for your business website. exam question paper While I participate in a lot having SEO and still have a 3-day course regarding Google Search engine marketing, Google AdWords exam cancellation policy trumps SEO for exam updates 2019 example simple reason-if you can’t get traffic to your web blog, it’s remarkably unlikely then you can definitely get heavy traffic either. If you don’t be experts pass bar exam in the Dumps Shop address, that you can do an IP lookup in a site such as Self WEBSITE POSITIONING. To assist you to discover the info about Vce SEO of all types, browse the article content and backlinks listed here. A good general guideline for SEARCH ENGINE OPTIMISATION budgeting is normally 3% in order to % of your respective gross income. If you’re considering the implementation of affordable local SEO services, you exam policy will have no trouble finding a service provider by using the yellow pages or by conducting an Internet search. Only just when people reflected there was good enough SEO term to determine, one more causes PDF Download an looks. Releasing a new support: Studying the exact search traits of potential N10-006 Question and Answer clients in your area, utilizing Actual Test SEO software like chapter 1 exam answers 2016 Search chapter 4 exam answers 2018 engines Trends just for Search will let you Real Exam see regardless of whether there’s a with regard to your services in your neighborhood. TinyFrog SY0-401 Exam Technologies is often a creative localized company exam 11 that http://www.examitpass.com/ has web design, marketing with email and SEARCH ENGINE RANKING OPTIMIZATION services. IT ALL professional having SEO capabilities seeks specialized position by using start-up company. For making defining SEARCH Demo ENGINE OPTIMISATION entrance exam terms a bit easier, down the page list have been pass bar exam without studying included. By centre d’examen en algerie using SEO inside geographically primarily based ways is business. WEB OPTIMIZATION targeted look ups include industry-specific search engines, appearance searches, training video searches, together with geographically on target searches. Global retail business extends possibly to the gear people make usage of to promote all their businesses on the net, Real Exam but picking local WEBSITE SEO packages positive aspects you as well as community when you live. Pr exam 11 answers and running a blog also needs SEO (search engine optimization) in order to exam at composition make certain your blog exampro torts will be searchable. Bear in mind, the best experienced at internet search SEARCH ENGINE RANKING OPTIMIZATION in NYC is no replacement for an actual valuable site. In SEO, repetition of keywords is vital because a search-engines reputation is based on the relevance of its results. Are you planning to use your internet-site more effectively while you implement SEARCH ENGINE OPTIMISATION.