+ Reply to Thread
Results 1 to 4 of 4

Macro that will compress the 3 rows into one

  1. #1
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Macro that will compress the 3 rows into one

    Hi guys,

    I have an excel with the export data that is not ok as the address is on 3 lines or more sometimes. I want what is in between the name of the company to be inserted into a cell. I want to have full name and the address into the same row.

    Please find attached the image of the file.

    Hope you can help.

    Thanks,
    Ionut
    Attached Images Attached Images
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Macro that will compress the 3 rows into one

    Try this
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Macro that will compress the 3 rows into one

    Hi Yasser,

    Thank you ! is working! But when I will have 2 or more than 3 rows for the address what should I do?

    Is there a way to make it dynamic?

    Thank you,
    Ionut

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Macro that will compress the 3 rows into one

    Did you mean by dynamic to determine the last row of data .. ??
    If so I did it using the variable Lr ..

+ 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. Replies: 6
    Last Post: 12-14-2015, 02:22 PM
  2. [SOLVED] Is it possible to compress (winrar) a folder with a macro
    By 1tane1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 10:29 AM
  3. Replies: 2
    Last Post: 04-02-2009, 05:56 AM
  4. Deleting Rows to compress data
    By Leal72 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-11-2007, 04:11 PM
  5. Help with macro - insert picture & compress
    By Davi0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2005, 07:54 AM
  6. [SOLVED] Compress picture with macro in Excel
    By jo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2005, 07:06 AM
  7. Macro-compress 300 cell list into 6 cells
    By TheOne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2005, 07:24 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