Transfer Dictionary records into a Worksheet

hagea_dan

New Member
Joined
Aug 14, 2014
Messages
19
Hi,

I need to paste the records of a dictionary that has 3 items into a worksheet but I can't come up with any algorithm because I just started using dictionaries and classes.
Can you please give me an example of how to do this?

The data from my dictionary looks something like this:

KEY 1ITEM(STRING)ITEM(STRING)ITEM(DOUBLE)
KEY 2ITEM(STRING)ITEM(STRING)ITEM(DOUBLE)
KEY 3ITEM(STRING)ITEM(STRING)ITEM(DOUBLE)

<tbody>
</tbody>
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
hagea_dan,

We would like more information. Please see the Forum Use Guidelines in the following link:

http://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html


See reply #2 at the next link, if you want to show small screenshots, of the raw data, and, what the results should look like.

http://www.mrexcel.com/forum/about-board/508133-attachments.html#post2507729


And, in order to further assist you it would help us if you posted all of your macro code using code tags.

When posting VBA code, please use Code Tags - like this:

[code=rich]

'Paste your code here.

[/code]
 
Upvote 0
Hi hiker95,

You are right, I should have posted my code for the readers to better understand my request but I just wanted to see a general example not a 100% accurate solution.
Anyway I managed to come up with a solution to this problem on my own.
I've transfered the dictionary items into a 2D array and then gave my desired range the array value.

Kind Regards.
 
Upvote 0
Hi hiker95,

You are right, I should have posted my code for the readers to better understand my request but I just wanted to see a general example not a 100% accurate solution.
Anyway I managed to come up with a solution to this problem on my own.
I've transfered the dictionary items into a 2D array and then gave my desired range the array value.

Kind Regards.

hagea_dan,

I am glad that you were able to solve your own request.

And, come back anytime.
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,375
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top