+ Reply to Thread
Results 1 to 6 of 6

Vba cell width and hieght adjusting

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Vba cell width and hieght adjusting

    Hi everyone

    does anyone know any code that will change a cell width and height .
    Last edited by jakeembx; 01-13-2014 at 03:30 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    15,846

    Re: Vba image naming help!

    Hi Jake,

    If I turn on my macro recorder and make the Column wider and Row taller I get code like:

    Columns("B:B").ColumnWidth = 10
    Rows("3:3").RowHeight = 23

    I hope that is enough help to do what you need.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,379

    Re: Vba image naming help!

    Something like:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,411

    Re: Vba image naming help!

    You must resize the row and the column of the cell :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  5. #5
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Vba cell width and hieght adjusting

    thanks guys solved my problem!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,379

    Re: Vba cell width and hieght adjusting

    You're welcome!

+ 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. Resizing cell in inches
    By Geetha Gupta in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2010, 11:39 PM
  2. Cell Resizing
    By windaroo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2010, 09:06 PM
  3. Resizing cells in a selection without resizing entire sheet
    By Danielle via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 08-11-2006, 05:10 PM
  4. cell resizing
    By DZ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2006, 07:45 AM
  5. Resizing a cell
    By gpearson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2006, 07:00 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