+ Reply to Thread
Results 1 to 2 of 2

Copy cells with text and pics to new cells while retaining all formatting and spacing?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Yellowknife, Canada
    MS-Off Ver
    Excel 2016
    Posts
    53

    Copy cells with text and pics to new cells while retaining all formatting and spacing?

    Hello

    I have a report I've created where each page is a separate sheet. Different situations require I use / add the relevant page.
    Each sheet is 40 cells in width by 47 deep - narrowed to fit on a single printable page. This is done to allow for columns and check boxes, etc..

    The Top 3 cells and the entire width are taken up by the header. The 1st row is deeper than the rest and has the company logo in the middle with a trade logo on either side - three separate tif files. The next two cells have the report title in it.

    Is there any way to copy this header with the tifs and keep the spacing when I paste to a new sheet so the header is the same?

    Is there a way to do this to a new sheet so that row and column widths are also retained / copied?

    Thx
    Dave

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy cells with text and pics to new cells while retaining all formatting and spacing?

    Something like this:

    Sub Trismos(): Dim ws As Worksheet, wo As Worksheet, r As Long
        Set ws = ActiveSheet: Set wo = Sheets("Object Sheet")
    r = ws.UsedRange.Rows.count
    ws.Cells.Copy wo.Range("A1")
    wo.Range("A4:A" & r).EntireRow.ClearContents: End Sub
    But you need to put your own object sheet name in the code (in red).
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Combining Linked Cells While Retaining Formatting
    By Underdogdj in forum Excel General
    Replies: 7
    Last Post: 06-27-2012, 03:29 PM
  2. Retaining Formatting in Filtered Cells
    By JamesShepherd in forum Excel General
    Replies: 0
    Last Post: 12-06-2006, 12:17 PM
  3. Replies: 2
    Last Post: 07-19-2006, 05:15 AM
  4. [SOLVED] How to copy a row with transposing to a column retaining links to input cells?
    By Dmitry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2006, 05:15 AM
  5. [SOLVED] help me write this table retaining table spacing and formatting
    By deano in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-05-2005, 06: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