+ Reply to Thread
Results 1 to 13 of 13

Automatically resizing rows when value changed

Hybrid View

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Automatically resizing rows when value changed

    Thanks again, I've tried using center across selection, but the text is centered.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Automatically resizing rows when value changed

    Hi, john_london,

    if you monitor a cell which has a formula inserted you would need to apply the Calculate-event as that would be triggered on any calculation/change of formula. Workshet_change would need to monitor both cells which might be changed.

    You might try to alter the code like
    '...
        With AutoFitRng
          .MergeCells = False
          Range(str01).Formula = "=IF(ISERROR(VLOOKUP(Data!$A$39, all_data, MATCH(selected_date, Data!$1:$1, 0), FALSE)), ""n/a"", (VLOOKUP(Data!$A$39, all_data, MATCH(selected_date, Data!$1:$1, 0), FALSE)))"
          Range(str01).Calculate
          CWidth = .Cells(1).ColumnWidth
          MergeWidth = 0
    '...
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Automatically unhide rows based on a value that is changed by a formula
    By Sky188 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 06:51 PM
  2. Problem with columns and rows automatically resizing
    By Fest911 in forum Excel General
    Replies: 10
    Last Post: 11-17-2012, 08:37 PM
  3. [SOLVED] Automatically resizing columns and rows
    By devm01@gmail.com in forum Excel General
    Replies: 1
    Last Post: 04-17-2006, 03:38 AM
  4. Automatically Resizing a Graph
    By PaulW in forum Excel General
    Replies: 1
    Last Post: 04-13-2006, 11:20 AM
  5. [SOLVED] resizing row height automatically?
    By Gumby in forum Excel General
    Replies: 2
    Last Post: 07-11-2005, 11:05 AM

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