Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8048695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:33:38+00:00 2026-06-05T06:33:38+00:00

I have an excel sheet where it uses a scroll bar to show data,

  • 0

I have an excel sheet where it uses a scroll bar to show data, this data changes with the scroll bar, some fields don’t show all the data. I’d like to have it where the data when it shows in the rows in question auto re-size as required. As the data goes up or down the list the row will auto-size so where it was goes back to a smaller size, and the row above or below depending the way the scroll bar is moved, will be adjusted to accomidate the larger data in the cell.

I wrote this code in the worksheet in question thinking it would work, but it doesn’t…

Option Explicit
Private Sub Workbook_Open()
Rows("2:12").EntireRow.AutoFit
Loop
End Sub

Now what I’d like to see is which is a caveat is the cells won’t go under a specific height, which is 36. It is just a want, but I’d like to see it kept that way… so it stays unformed, minus the cell that needs to expand to show more data.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:33:40+00:00Added an answer on June 5, 2026 at 6:33 am

    First of all, name the workbook and sheet on which you want to apply the autofit.
    Eg.

    thisworkbook.sheets("Name").rows("2:12").entirerow.autofit
    

    And uhm, why the loop?

    For putting limits on the row heights, check out this thread: http://www.ozgrid.com/forum/showthread.php?t=19813

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel sheet and have this formula below. I would like to
I have an Excel sheet and have this formula below. I would like to
I have a excel sheet with 7 fields. I want to remove/filter all the
I have an excel sheet which has some huge data. Data is organized as
I have an excel sheet like this: Each month, I have to insert the
I have an excel sheet, where cells A1-C20= =INT(RAND()*10) . This is my data
I have excel sheet that looks something like this.. A B C ...K.....P Q
I have an Excel sheet that looks like this: |A B C D -----------------------------------------------------------------------------------
In a cell in Excel sheet I have a Date value like: 01/01/2010 14:30:00
Hai i have an excel sheet, in that i need to calculate some values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.