Relative Content

Tag Archive for excelvbaautomation

How to Sample Top 10 Largest Values in a PivotTable and insert in a separate table?

I’m a beginner in terms of using the automation feature for Excel. Now I have used the automate record feature to create PivotTables for a report. However, in the script it didn’t sort the data from largest to smallest, which is my first problem. My second, is once I sort it manually, I would like to have an automation feature that would take the top 10 from 2 general categories in each PivotTable and insert them into tables on different sheets. However, sometimes these categories don’t always have 10 values. Is it possible to limit the number of cells it copies and pastes to the tables?
enter image description here
enter image description here

How to copy a body of an email do excel sheet via VBA?

Is there a way to copy the body of an e-mail into excel sheet using VBA?
I would like to filter my Outlook e-mails by either the subject or e-mail address of the sender. Then I would like to copy the body of the e-mail and paste it into excel sheet. It would be good to filter the e-mail by sender and choose only the latest e-mail.

VBA Delete Some shapes

I’m trying to delete some shapes that have macros attached and only leave combobox when copying the workbook for the end user. All my comboboxes start with Cbxxxxx.