+ Reply to Thread
Results 1 to 3 of 3

Selected Cell Width

  1. #1
    Forum Contributor
    Join Date
    09-13-2008
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    120

    Selected Cell Width

    2 questions.

    1. I can figure out how to get the width of the activated cell, but how do i get the width of the selected cells? so if A1:A3 is selected, how would I get the number that is the width of A1 + width of A2 + width of A3?

    2. I notice the width is it does use is neither pixels nor excel's width amount. What is this number and how is it calculated?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    1. .... how do i get the width of the selected cells?
    Please Login or Register  to view this content.
    2. What is this number ...
    Points = 1/72 inch.

    You might also look at the ColumnWidth property.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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. changing colour of selected cell
    By samg27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2008, 08:35 AM
  2. Trying to get an X to appear in cell when selected
    By slimjim1013 in forum Excel General
    Replies: 11
    Last Post: 02-21-2008, 02:10 AM
  3. OFFSET a RANDomly selected INDEX cell?
    By Clark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2008, 05:30 PM
  4. Autofit if characters in cell exceed column width
    By munkayboi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2007, 03:45 PM
  5. Make a spinner control SELECTED cell
    By downward spiral in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2007, 05:31 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