+ Reply to Thread
Results 1 to 2 of 2

Rewrite VBA script from Column based arrays to Rows based arrays

  1. #1
    Registered User
    Join Date
    04-11-2018
    Location
    Switserland
    MS-Off Ver
    2016
    Posts
    1

    Rewrite VBA script from Column based arrays to Rows based arrays

    Hi all, I'm new here, so there we go!

    I've inherited an VBA script that uses input and result data sorted in a column structure. However, our new system requires any input and results to be in a row structure. As I have hardly any knowledge on VBA's I was wondering it anybody can help me or explain how to rewrite the existing column based VBA script to a rows based VBA script.

    I've attached the excel files which contains two tabs; 1) the original column based data layout which uses the original VBA script 'GEM_UKPRTTaxLossesWorkingsCOLUMN', and 2) the same input data transposed to a rows layout which should be using a rewritten VBA script 'GEM_UKPRTTaxLossesWorkingsROW'. Please note that currently Public Function 'GEM_UKPRTTaxLossesWorkingsROW' and Public Function 'GEM_UKPRTTaxLossesWorkingsROW' are identical, other than the name.

    Much thanks, Will
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Rewrite VBA script from Column based arrays to Rows based arrays

    Try:
    Please Login or Register  to view this content.
    Select the "Column layout" sheet to make it the active sheet and run the macro. Change the sheet name to suit your needs.
    Last edited by Mumps1; 04-11-2018 at 09:28 AM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Transfer data based on value in Column using arrays
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-07-2016, 02:15 AM
  2. Transfer data based on value in Column from sheet to two sheets using arrays
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-10-2016, 10:01 PM
  3. multiple look up arrays to sum column based on various criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2016, 04:11 AM
  4. Replies: 11
    Last Post: 02-16-2016, 11:06 PM
  5. Dynamic Arrays - Selecting some rows based on criteria
    By AHFoddeR in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-23-2013, 03:55 AM
  6. Using Arrays to populate a column based on a look up type table
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-11-2012, 12:09 PM
  7. Advancing arrays based on value
    By Capnponcho in forum Excel General
    Replies: 4
    Last Post: 01-30-2012, 12:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1