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:

[TABLE="class: grid, width: 400, align: left"]
<tbody>[TR]
[TD]KEY 1[/TD]
[TD]ITEM(STRING)[/TD]
[TD]ITEM(STRING)[/TD]
[TD]ITEM(DOUBLE)[/TD]
[/TR]
[TR]
[TD]KEY 2[/TD]
[TD]ITEM(STRING)[/TD]
[TD]ITEM(STRING)[/TD]
[TD]ITEM(DOUBLE)[/TD]
[/TR]
[TR]
[TD]KEY 3[/TD]
[TD]ITEM(STRING)[/TD]
[TD]ITEM(STRING)[/TD]
[TD]ITEM(DOUBLE)[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,224,930
Messages
6,181,825
Members
453,067
Latest member
mdiz777

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