Results 1 to 10 of 60

Thread: Vba button Comparison data between two file or two tabs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Alternative 2

    OutputAlternative2
    This is just a suggestion for an alternative output format: The main difference is that the output is given in one column. We use the single “column” concatenated check data arrays ( which we already have ) , for our output instead of using the initial capture data arrays containing all columns.

    Brief code description and modifications to previous codes:
    My arrOut() is now only 1 column, as I am using the concatenated string ( of all 5 column data values), in the output:
    _ReDim arrOut(1 To UBound(arrSht2(), 1), 1 To 1)

    I remove the “|” ( which was just for my testing convenience ) and replace that with a few spaces: ___. This will make the displayed string look more representative of the Worksheet data
    So "row" elements in my check arrays now take this type of form:
    _2 _ Jet _ Blue21 _ ABC _ 458 _ 458
    ( previously they were this form : _2 | Jet | Blue21 | ABC | 458 | 458


    The rest of the code changes basically involve changing the string data put into the arrout() to be the relevant concatenated string. So we only have one “column” of output which contains all the 5 data column values

    _._____________________

    Here is this alternative output code:
    http://www.excelfox.com/forum/showth...0762#post10762

    Here is some test results:
    http://www.excelfox.com/forum/showth...0763#post10763

    Alan
    Last edited by DocAElstein; 07-30-2018 at 04:47 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. Link spin button or scroll button to chart.
    By Thainguyen in forum Excel Help
    Replies: 1
    Last Post: 06-08-2018, 04:19 AM
  2. VBA Macro to open a file and extract data
    By jeremiah_j2k in forum Excel Help
    Replies: 0
    Last Post: 05-22-2017, 03:17 PM
  3. Button to export data to a master file
    By aryanaveen in forum Excel Help
    Replies: 0
    Last Post: 01-17-2015, 02:35 AM
  4. Replies: 7
    Last Post: 05-20-2014, 02:10 AM
  5. Replies: 3
    Last Post: 08-28-2013, 02:02 PM

Tags for this Thread

Posting Permissions

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