Custom Properties

This is how you can create a Custom Property in an Excel Workbook to save information. Go to File->Property (as in pic).
Here is the code to read and write to the Custom Property.
Sub SetProperty() ThisWorkbook.CustomDocumentProperties("EmpName") = "Vishesh" End Sub Sub GetProperty() MsgBox ThisWorkbook.CustomDocumentProperties("EmpName").Value End Sub

»
- Vishesh's blog
- Add new comment
- 1725 reads

Recent comments
5 hours 14 min ago
8 hours 37 min ago
9 hours 44 sec ago
15 hours 3 min ago
15 hours 55 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 18 hours ago
2 days 13 hours ago