+ Reply to Thread
Results 1 to 3 of 3

Macro to Copy Formating from Previous Column and Paste into Last Column

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Macro to Copy Formating from Previous Column and Paste into Last Column

    Hi All,

    My macro currently copies data and pastes into the next available column on a different sheet.
    This will be run multiple times so a new column is constantly being added.

    What I need is for the macro to copy the formatting from the previous column and paste it into the most recent column.

    In the example file, on the Data tab, I would need the formatting from column E to be pasted into column F.
    But this is dynamic. So next time the macro is run I would need the formatting from F to be pasted into G.

    I can't figure out how to code the macro so it finds the second to last column with data in it, copy the formating, and paste that formatting into the very last column.
    The End Result tab shows how it would look.

    Thank you so much for your help!!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: Macro to Copy Formating from Previous Column and Paste into Last Column

    You can try something like this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Macro to Copy Formating from Previous Column and Paste into Last Column

    Perfect! It does exactly what I was looking for.

    Thank you so much!

+ 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] Macro to copy columns and paste into one column in next blank column
    By rmmohan in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-31-2013, 03:14 PM
  2. [SOLVED] Macro to Copy and Paste a Column to the next available empty column
    By ekr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2013, 02:50 AM
  3. [SOLVED] Macro Help. Copy Hyperlink url from Column A and paste its image into Column B
    By kdela1212 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-04-2013, 09:00 AM
  4. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  5. Macro to copy data from previous column according to criteria.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2011, 08:20 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