Skip to main content

All Questions

Tagged with
5 votes
2 answers
133 views

concatenate values and delete the remaining rows using arrays

the below code used to: Concatenate the values on a specific column "N" depend on the value of column "A" then delete the remaining rows. It works, but with range of 30k rows the ...
Leedo's user avatar
  • 275
2 votes
1 answer
150 views

OOP approach to filter two-dimensional array

So, after this functional(?) approach and thanks to the great improvement of @CDP1802, I've decided to try an OOP approach to filtering an two-dimensional array. In my opinion, the result is way more ...
DT1's user avatar
  • 354
1 vote
1 answer
104 views

Comparing information to a directory of active enployees

The code is doing everything that I need it to. It's taking much too long though upwards of a couple minutes to complete the macro. Does anyone know how I code optimize this VBA code to run quicker? I'...
bentleytrader's user avatar
3 votes
0 answers
2k views

Alternative for VLOOKUP/Index-Match in VBA

I am sharing this function I wrote with the community to provide an alternative to slow VLOOKUP and/or Index-...
rickmanalexander's user avatar
2 votes
2 answers
235 views

Index Match implementation

The code below takes header variables, retrieves the column index, and then, using an Index/Match function, returns data from a matching account number. The reason it is written this way is because I ...
Nahuatl's user avatar
  • 131
6 votes
2 answers
112 views

Find select values on one worksheet and copy to a second

In the Calculator worksheet of my spreadsheet, for any appliance type present in a building being studied, users enter a quantity. There are 18 different appliance ...
LShaver's user avatar
  • 419
2 votes
2 answers
194 views

Mapping one array onto another where columns from first array become rows in second array

I am processing an unformatted CSV, New-AmbSYS-to-2018-Jan.csv, from NHS England Ambulance Quality Indicators, by reading its contents into an array, and carrying out a number of steps that lead to a ...
QHarr's user avatar
  • 375
1 vote
1 answer
333 views

Array Wrapper Class

I’ve wrote a small array wrapper class which mimics the built-in Collection for adding and retrieving items. Once the object is created, you set the array capacity and that would not change. ...
Kostas K.'s user avatar
  • 215
2 votes
2 answers
235 views

Multiply a 2D array by 1D array to get a third (2D) array

I've working with three dynamic arrays (all are datatype Double) - they are OriningalArray This will be assigned from a range that the end user will see and ...
Jeremy's user avatar
  • 131
2 votes
1 answer
148 views

VLookup simulation: copying data from one sheet to another

I tried to write a VLOOKUP in my macro but for some unknown reasons it didn't work (see my post on StackOverFlow for more info. So I decided to do a macro which achieves the same result, but it takes ...
Seb's user avatar
  • 121
15 votes
2 answers
2k views

Passing a 1D array (single column of a Range object) to .NET to manipulate it without loops and returning it back to VBA

Background Kind of a follow up - slightly related to my other SO question. I thought that if somehow I find a way in VBA to pass a single column to .NET and convert it to a native .NET type then I ...
user avatar