+ Reply to Thread
Results 1 to 3 of 3

Can you automate Merge & Centre?

  1. #1
    Registered User
    Join Date
    05-30-2019
    Location
    Dundee, UK
    MS-Off Ver
    Excel 2016
    Posts
    1

    Can you automate Merge & Centre?

    Hi all,

    First time posting on this site so apologies if this is in the wrong section.

    I've been asked to create a construction project report for our client showing progress, this will be updated periodically. Data will be exported from another application to a data dump sheet, and this will be presented on a linked cover sheet. I'd like to automate as many of the features as possible and am hoping the community can solve a problem.

    The cover sheet shows tasks in a row down the left hand side, and individual dates along the top - so far so simple. The dates are presented as year in the top row, then month, then date and then weekday. The year and month rows are presented as the cells between the start and finish dates are "merged & centred" and the relevant info typed in. The date row is linked directly to the data dump sheet, and so when the report is updated the dates will appear'/disappear accordingly. I have formatted the sheet so that the weekday in the row below each date is automatically updated.

    The problem arises with updating the month and year. At present this must be done manually at each update: as they are not linked to any other data they remain static when the dates below them change. Merge and centre is used on the individual cells in the Month row above the date to match the correct start and finish date for each month, and then the month typed in. Same goes for the year.

    Is there any way this can be automated on the cover sheet?

    Many thanks in advance,

    n_g

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Can you automate Merge & Centre?

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Can you automate Merge & Centre?

    I would advise against using Merge at all, it causes all sorts problems with formulas and other functions. Most experienced users shun merge like the plague.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Merge and Centre
    By SimonCampbell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2018, 05:17 AM
  2. VBA Centre Across Selection Help!
    By Happy Booking in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-19-2014, 10:44 AM
  3. Replies: 2
    Last Post: 07-12-2012, 08:11 PM
  4. undue merge and centre
    By ED in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-31-2006, 03:50 PM
  5. [SOLVED] How do I get "centre across selection" to centre properly?
    By Marjon in forum Excel General
    Replies: 5
    Last Post: 03-16-2006, 08:24 PM
  6. How do I centre rows top to bottom?
    By Centre top to bottom excel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-13-2005, 08:05 AM
  7. What is the Keyboard Shortcut of Merge and Centre Tool Command
    By Rao Ratan Singh in forum Excel General
    Replies: 4
    Last Post: 02-14-2005, 12:06 AM

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