+ Reply to Thread
Results 1 to 5 of 5

Inserting cell with shift right and Copy format in multiple specified sheets

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    6

    Inserting cell with shift right and Copy format in multiple specified sheets

    I'm trying to insert a cell at C3 & C4 across three named sheets and also wanted to apply the format from existing C3:C4 to the inserted cells.

    My current code will add the cells to columns C to E on sheet "Budget Template" only and not copy format.

    What code will loop through all three sheets and insert the 1 cell with copied format?

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Inserting cell with shift right and Copy format in multiple specified sheets

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Inserting cell with shift right and Copy format in multiple specified sheets

    thanks

    I tried the code you provided which helped to copy the format across but I still need to insert cells before copying the format

    using your code I came up with following which inserts cells at C3:C4 on sheet "Budget Template" but does not work for "CEM" or "BIM" (the format does seem to copy at C£;C4 on all 3 sheets though).

    Any advice on how to amend code to insert cells at at C3:C4 on all 3 sheets "Budget Template", "CEM" and BIM would be much appreciated

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-14-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Inserting cell with shift right and Copy format in multiple specified sheets

    in fact there is an easier way to explain what I am trying to do.

    How can I make the following code more efficient so that lines are not repeated. The string "Card" in sheet name is unique to the sheets I want to be changed by the code:

    Please Login or Register  to view this content.
    thanks

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Inserting cell with shift right and Copy format in multiple specified sheets

    Quote Originally Posted by wingbot View Post
    ... but I still need to insert cells before copying the format ...
    Prepare a file with sample data.

+ 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. Copy the format and cell values of sheets into another excel file
    By ahmadjumaa80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2022, 07:21 AM
  2. Replies: 1
    Last Post: 07-13-2019, 01:12 PM
  3. Possible to shift columns across multiple tables in different sheets?
    By juntjoo in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-09-2016, 03:21 PM
  4. [SOLVED] Macro to copy cell width to new sheets (ie copy original sheet format)
    By teenyjem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2013, 07:28 AM
  5. Copy specific cell from multiple sheets to summary - excluding some sheets
    By kabammi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2012, 09:27 AM
  6. Copy Format of a Cell to all sheets how
    By OceanBlue in forum Excel General
    Replies: 3
    Last Post: 07-28-2011, 11:43 AM
  7. copy formulas & format of row above when inserting a row, but only on 1 sheet
    By Celt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2006, 12:25 PM

Tags for this Thread

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