+ Reply to Thread
Results 1 to 5 of 5

Macro to copu split data into diferent column

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    260

    Macro to copu split data into diferent column

    Hi all


    Hope, that here is somebone who could help me. I have macro, which will merge and split compiled data into more sheets based on column A. This is working.
    However, I would liek to make small correction in the macro, that will paste those split into column Q. at the moment it past to column A.

    I've tried to change all the references, but it's not working

    Thanks,
    Andy

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    260

    Re: Macro to copu split data into diferent column

    Hi all,

    I just found out, where it should be updated, but don't know how to modify it.

    Is there anybody, who could help me to update following part so it will be untill columns P, not untill last active column?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    260

    Re: Macro to copu split data into diferent column

    Hi all

    is there anybody who could help me to modify the above code to have it for the specific range, not to LR?

    Thank you,
    Kind Regards,
    Andy

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Macro to copu split data into diferent column

    so it will be untill columns P, not untill last active column?
    instead of

    Please Login or Register  to view this content.
    use

    Please Login or Register  to view this content.
    Looking at your post #2 there is a mistake in the ws.Cells expression I think. Should it not be i instead og 1?

    Alf

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Macro to copu split data into diferent column

    No I now realise that that the "Unique" value in column P is probably a heading so it should go into row 1. So replace the i in my code snippet with a 1.

    not to LR?
    one way could be to change
    Please Login or Register  to view this content.
    to the "lr" value to the highest row number in your specific range or perhaps an

    Please Login or Register  to view this content.
    instead of

    Please Login or Register  to view this content.
    alf

+ 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. Vlookup - HOW TO SUM TWO DIFERENT COLUMN'S
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-22-2014, 11:43 AM
  2. [SOLVED] COUNTA from value in diferent column
    By lescrowe in forum Excel General
    Replies: 6
    Last Post: 09-22-2014, 02:00 AM
  3. [SOLVED] Removing data from 2 diferent worksheets with the same macro???
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2014, 03:35 PM
  4. Replies: 1
    Last Post: 11-21-2013, 03:30 PM
  5. Copu worksheet ranges from One Workbook to another from
    By halem2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-24-2006, 01:19 PM

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