I'm looking to dynamically update an Excel spread sheet with folder sizes on our NAS. What I want to have is a button on the Excel spreadsheet that, when clicked, will update the folders I have listed in column "A" with a file count in column "B", folder cound in column "C" and total folder size in column "D". At the end, after all the folders have been tallied, it will have a grand total size count in column "D". I can create the spreadsheet without any trouble, but getting the code to work is a problem, I have no idea where to start. I've created spreadsheets before, but not like this.
Example:
Example:
Code:
+----------+----------+----------+----------+
| Dir | Files | Folders | Size |
+----------+----------+----------+----------+
|C:\First | 2,500 | 55| 1.2G|
|C:\Second | 250 | 10| 3.5G|
|C:\Third | 1,200 | 120| 4.5G|
| | | | |
+----------+----------+----------+----------+ /--------\
| | | Total | 9.2G| | Update | <-- Update Button
+----------+----------+----------+----------+ \--------/