+ Reply to Thread
Results 1 to 7 of 7

Repeat a/a to each column

  1. #1
    Forum Contributor
    Join Date
    09-21-2012
    Location
    greece,athens
    MS-Off Ver
    Excel professional plus 2016
    Posts
    157

    Repeat a/a to each column

    Hallo again.
    I need to put the a/a in front of each column of my data.
    I must say that the range of my data(number of columns with data)
    is changing every time.

    Thank you in ADVANCED .
    Attached Images Attached Images
    Last edited by fulldeen; 10-05-2021 at 02:30 PM.
    Power! is knowledge...............

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Repeat a/a to each column

    Please see the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    09-21-2012
    Location
    greece,athens
    MS-Off Ver
    Excel professional plus 2016
    Posts
    157

    Re: Repeat a/a to each column

    ok! i will

  4. #4
    Forum Contributor
    Join Date
    09-21-2012
    Location
    greece,athens
    MS-Off Ver
    Excel professional plus 2016
    Posts
    157

    Re: Repeat a/a to each column

    Sorry about that.
    Attached Files Attached Files

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Repeat a/a to each column

    Try this:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-21-2012
    Location
    greece,athens
    MS-Off Ver
    Excel professional plus 2016
    Posts
    157

    Re: Repeat a/a to each column

    That was fantastic my Dear TMS.

    I know very few thinks about code ,so i had to change

    Cells(3, i).Resize(lLR - 3 + 1).Insert Shift:=xlToRight
    Cells(3, 1).Resize(lLR - 3 + 1).Copy Cells(3, i)

    to

    Cells(1, i).Resize(lLR - 1 + 1).Insert Shift:=xlToRight
    Cells(1, 1).Resize(lLR - 1 + 1).Copy Cells(1, i)


    in order make it work properly and it does.
    THANK YOU so much for your respond.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Repeat a/a to each column

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. [SOLVED] Move data in Column B to horizontal for all until change in Column A then repeat
    By BrisbaneOz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2021, 03:08 AM
  2. [SOLVED] Formula to repeat column headings to a new column...
    By LesleyB ATL in forum Excel General
    Replies: 5
    Last Post: 11-26-2019, 10:27 AM
  3. Repeat formula in column H until the last row with data in column G
    By matteobsuetti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2015, 08:36 AM
  4. [SOLVED] Making values in one column repeat every 12th row in a different column
    By mfortier3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2013, 06:45 PM
  5. [SOLVED] VBA to detect next empty cell in column and add formula, then repeat for next column, ...
    By Marijke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 07:28 AM
  6. [SOLVED] Count repeat numbers in column B based on a condition from Column Al
    By helpbitte in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2012, 10:11 AM
  7. [SOLVED] How I can print full text bigger than column, in repeat column
    By Prince in forum Excel General
    Replies: 0
    Last Post: 08-11-2005, 03:05 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