+ Reply to Thread
Results 1 to 4 of 4

Merged Cell column width vs single cell column width

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Merged Cell column width vs single cell column width

    what ive got on my spreadsheet is
    J1:Q1 as merged cells with text in it
    in T1 i have the exact same text

    I have set the column width of Col T with the below code

    Please Login or Register  to view this content.
    The physical size on the screen and when printed is different between the cells.

    This matters to me as I am running out of space on the page when printing.

    Any tips that might help me solve this?

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Merged Cell column width vs single cell column width

    Hi Ratdogexcel,

    I see from the forum that VBA and merged cells don't always work well together so....

    Have you (in manual mode) tried to see what the size of the merged "J" column is and simply use that for "T"

    I haven't got an example to work with (tip, always post a sample spreadsheet) so this is just guesswork, as I say the forum posts seem to indicate difficulty with merged cells unless you are really sure what you are doing

    jmac1947

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Merged Cell column width vs single cell column width

    Perhaps iteration will be more accurate - you may try:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Merged Cell column width vs single cell column width

    Thanks Izandol

    Your code worked perfectly as long as the original size of Row T is less than the cumulative size of the other rows.


    Im not too sure why the other one didnt work but im happy with this result.

    Test Col T.xlsm

+ 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] Merged Cells and Column Width
    By schmidt1962 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2013, 09:19 PM
  2. [SOLVED] column width macro in merged cell seems to have problem
    By anand_erin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 08:29 AM
  3. Set Column Width Based On Total Width Of Other Columns
    By rayneraingoaway in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 06:10 PM
  4. Same column, different cell width at different row
    By Glenn Chung in forum Excel General
    Replies: 3
    Last Post: 06-07-2005, 05:05 AM
  5. What is the column width associated with cell borders?
    By Bob Tarburton in forum Excel General
    Replies: 3
    Last Post: 04-01-2005, 06:06 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