ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How can I store both key and value in VBA? (https://www.excelbanter.com/excel-programming/381962-how-can-i-store-both-key-value-vba.html)

Chip Pearson

How can I store both key and value in VBA?
 
You might try using a Dictionary object. Have a look at
http://www.cpearson.com/excel/Collec...ctionaries.htm for VBA utility
procedures for Dictionaries and Collections. To use a dictionary, you'll
need a reference (in VBA, Tools menu, References) to the "Microsoft
Scripting Runtime" library.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)


"Dev" wrote in message
...
I am trying to create a hashtable with key value pairs - where both key and
value are strings. How to do this using VBA?

Thanks for any help!




dev

How can I store both key and value in VBA?
 
I am trying to create a hashtable with key value pairs - where both key and
value are strings. How to do this using VBA?

Thanks for any help!


All times are GMT +1. The time now is 12:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com