Posts by maehar

    Hello,


    I have tested the macro and adjusted it to my situation but I am getting an error (on the part in red). The error is - Method 'Range' of object'_Worksheet' failed.


    Thank you

    Hi,

    Could you please show me how to integrate that into the original code?


    Thank you

    Hi,


    Unfortunately not, I have the source and destination workbooks open when I try and run the command button, but I am getting this error code "Object doesn't support this property and method" so I think I am naming the file in the wrong way.



    Also, similarly to the second part of my previous question. As a new raw data file is generated every time will I have to go into the VBA every time and change the file source and destination or is there a way I can automate this with a basic template workbook?


    Thank you for your continued help. Much appreciated!

    Hi,


    Apologies again for the late reply. I have had a look and the Matrix works perfectly, Thank you very much!

    Do you know how/if I can still do this if my RAW data (list of 96) is in a different workbook to the final data (the 8x12 grid) that I want to output using the matrix (do I change the name of the location of the destination workbook?)


    And how would I turn this into a workbook that I can use every time (as a template) to transform my data? After every experiment, the raw data is automatically generated from the software I use for the experiment and I generate the final data workbook myself. But I would like to have a template so that I can quickly transform it every time.

    Hello,


    I am very new to macros and VBA but trying to improve. Each time I conduct an experiment a raw database is automatically generated. In the raw database each data set is arranged in 1 column with 96 rows (there are multiple columns of 96 on each raw data base). I need to transfer this data to another workbook which is my Final data base and on the final database I would like the data to be formatted in 8x12 grids (one for each column of 96). The way this is currently being done is very slow and error prone so I am trying to automate it.


    For each RAW data workbook that is generated I would like to use a template of the final data workbook so that I can create 1 final data workbook which includes 8x12 grids for each column of 96 on the raw data sheet.


    I initially used this formula "INDEX(A1:A96, TRANSPOSE(SEQUENCE(12,8)))" using excel 365 and that worked, but realised that the PC that I need to use the databases on has Excel 2019 which does not have the SEQUENCE function.


    I am very new to macros and VBA but I was hoping someone could help me write a VBA code to create a function or a command button to do what I would like to do. (Hope it all makes sense - see attachments also)


    Thank you in advance