Just in case: the solution (on of possibilities) has been published yesterday on Use VBA/Macros Excel for solving this interesting simulation question (probability) (excelforum.com)
Posts by Kaper
-
-
Just in case - the answer was published some time ago in one of cross-posted threads: https://www.excelforum.com/exc…s-scale-on-condition.html
-
Re: Adding multiple 4 columned text files side by side into one work sheet
last try:
CodeWith ThisWorkbook.Sheets(1) Dim mycolumn As Long For i = 1 To n mycolumn = .cells(1,.columns.count).end(xltoleft) If mycolumn<>1 Then mycolumn = mycolumn+1 .cells(i,mycolumn).Resize(, UBound(a(i)) + 1).Value = a(i) Next End With
it is not too easy to ammend a code while having no file for testing
-
Re: Adding multiple 4 columned text files side by side into one work sheet
Whoops, I misunderstood you (sorry for that), and you probably have not noticed the result - the files were inserted one under another, not side by side.
So here it goes: -