+ Reply to Thread
Results 1 to 5 of 5

Excel 4 macro Column.Width How to

  1. #1
    Registered User
    Join Date
    02-20-2021
    Location
    Hong Kong
    MS-Off Ver
    2007 Student
    Posts
    3

    Question Excel 4 macro Column.Width How to

    According to Microsoft, Excel 4 macros are still supported but I am having trouble with Column.Width . Example is =COLUMN.WIDTH(5,,FALSE,,) don't change column width and always returns false. This is in a Macro Sheet. I tried Excel 365 and also Excel 2007 Student Versions.
    Thanks Ahead!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Excel 4 macro Column.Width How to

    Perhaps have a look at https://www.excelforum.com/tips-and-...functions.html
    ( To use these functions you need to use defined names)

  3. #3
    Registered User
    Join Date
    02-20-2021
    Location
    Hong Kong
    MS-Off Ver
    2007 Student
    Posts
    3

    Re: Excel 4 macro Column.Width How to

    Defined Name returns #Name? error. Also, please correct me if wrong, defined name apply to non-macro sheets.
    TQ

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Excel 4 macro Column.Width How to

    The technique is described at https://www.mrexcel.com/board/thread...guments.20611/ for the GET.CELL function
    (sheets using Macro4 should be saved as xlsm)
    Try to find something similar

  5. #5
    Registered User
    Join Date
    02-20-2021
    Location
    Hong Kong
    MS-Off Ver
    2007 Student
    Posts
    3

    Re: Excel 4 macro Column.Width How to

    TQ. I should have mentioned in original post that Get.Cell works but not Column.Width.

+ 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] Let dropdown list width expand beyond width of column so people can read answer choices?
    By xdrenched in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-15-2023, 02:05 AM
  2. VB Code to draw rectangle per data size
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2016, 11:52 AM
  3. Reconciling units: Column width and image width
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2015, 03:03 PM
  4. Replies: 2
    Last Post: 07-30-2014, 11:13 AM
  5. Column Width Macro
    By danigurl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2011, 07:32 PM
  6. Row and Column width macro
    By Luck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2011, 09:01 PM
  7. [SOLVED] 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

Tags for this Thread

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