+ Reply to Thread
Results 1 to 5 of 5

Is it possible to measure/display the column width with a cell function?

  1. #1
    J
    Guest

    Is it possible to measure/display the column width with a cell function?

    Wednesday afternoon

    Is it possible to measure/display the column width with a cell function?

    I need to adjust some columns for a report.

    But I cannot find a way to display the current width in units that I can then place in a VBA macro.

    Would be very good to have the macro read the values entered in a set of columns and change the width accordingly.


    (This is very easy in Quattro pro.)

    J



  2. #2
    Bernd Plumhoff
    Guest

    RE: Is it possible to measure/display the column width with a cell fun

    Have a look at ShowWidth at:
    http://www.sulprobil.com/html/get_cell.html

    HTH, Bernd
    --
    Use non-volatile INDEX(P11:IV65536,1+w,1+y):INDEX(P11:IV65536,w+y,x+z)
    instead of volatile OFFSET(P11,w,x,y,z).

  3. #3
    J
    Guest

    Re: Is it possible to measure/display the column width with a cell fun

    Thank you for the link.

    'Tis helpful.

    A little mode and the formula displays the current width in some unknown units.

    Why does MS make it this difficult to use its products?

    J


    "Bernd Plumhoff" <BerndPlumhoff@discussions.microsoft.com> wrote in message
    news:BD2C4A1E-57A1-4943-83B2-5D3E71AA32AF@microsoft.com...
    Have a look at ShowWidth at:
    http://www.sulprobil.com/html/get_cell.html

    HTH, Bernd
    --
    Use non-volatile INDEX(P11:IV65536,1+w,1+y):INDEX(P11:IV65536,w+y,x+z)
    instead of volatile OFFSET(P11,w,x,y,z).



  4. #4
    Bernd Plumhoff
    Guest

    Re: Is it possible to measure/display the column width with a cell

    Hello again,

    I think MS does *not* make it difficult :-)
    Another approach:
    Option Explicit

    Const lbutiwant20 = 20

    Sub getnsetwidth()
    With Worksheets("Sheet1").Columns("A")
    Call MsgBox("Width of column A: " & .ColumnWidth)
    .ColumnWidth = lbutiwant20
    End With
    End Sub

    HTH,
    Bernd

  5. #5
    DNA
    Guest

    Re: Is it possible to measure/display the column width with a ce

    I think it's merely what you get use to.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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