Add new row by looping column (Scripting Dictionary)

Status
Not open for further replies.

SamKhem

Board Regular
Joined
Mar 18, 2024
Messages
50
Office Version
  1. 2016
Platform
  1. Windows
Dear Senior member

I would like request you to guide coding vba with scripting dictionary to run loop in one column to create another row such
loop column G is reference and F is amount to generate new column with add row in column L and M.

Thank in advance for your assist.
Best regards,

condition MM.xlsx
FGHIJKLM
4OLDRESULT
5REFERENCEAMOUNTREFERENCEAMOUNT
6AC2308200035-188.28AC2308200035188.28
7AC2308200035-188.28
8
9REFERENCEAMOUNT
10AC2319900001-100AC2319900001-100
11AC2319900001-0.02AC2319900001100
12AC2319900001-0.02
13AC23199000010.02
14
15REFERENCEAMOUNT
16AC2319900009120000AC2319900009120000
17AC23199000091787.8AC2319900009-120000
18AC2319900009114.12AC23199000091787.8
19AC2319900009-1787.8
20AC2319900009114.12
21AC2319900009-114.12
22
23REFERENCEAMOUNT
24AC2319100027-0.07AC2319100027-0.07
25PL2319100027100AC23191000270.07
26AC2319100027-0.07
27AC23191000270.07
28PL2319100027100
29PL2319100027-100
Sheet1
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Re: "with scripting dictionary"
Why?

In your example picture, Cells 7, 8 and 9 as well as 12, 13, 14 and 15 as well as 19, 20, 21, 22 and 22 in Columns A and B are empty.
This matches with cells needed to fill your request. Is that in the real workbook also?
 
Last edited:
Upvote 0
Re: "with scripting dictionary"
Why?

In your example picture, Cells 7, 8 and 9 as well as 12, 13, 14 and 15 as well as 19, 20, 21, 22 and 22 in Columns A and B are empty.
This matches with cells needed to fill your request. Is that in the real workbook also?
Yes it's ok. Just follow this reference above.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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