• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Autofit Rows

I really insterested with those interactive dashboard using hyperlinks, so cool and awesome!


and i make some improvisation with that, i use the technique to display different area activity report, let's say i have 4 areas (same with the one which is shown on your sample), but i don't need chart to know what are those areas doin' everyday, so i make activity report (only texts). and when i point my mouse to dedicated area, the activity which is shown on other cell is changes (same with charts in the sample)


there are still some problems here,

all my data are in wrap text, each time there's a huge activity which is need to be reported in a single row (i have to do it, so it would be easy to filter by equipment name, there is only 1 activity per equipment per day), i will need to adjust the row height to show the rest of the report, yes i can do it by double clicking the rows, but i think it will be cooler if it can autofit automatically when i point my mouse to dedicated area


i using this code


Private Sub Worksheet_Calculate()

Me.UsedRange.Rows.AutoFit

End Sub


but it doesn't work, the rows keep not autofit,

any sugestion?


thanks before
 
Hi


Lets say the range for your text starts in A1. Then the following should get your started. Change the range to suit.


Take care


Smallman

[pre]
Code:
Private Sub Worksheet_Calculate()
[a1].CurrentRegion.EntireRow.AutoFit
End Sub
[/pre]
ps not sure how the whole code tagging on this site works. Might do a bit of reading now (apologies).
 
Hi, abduldedysubhansyah!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about questions in general...


If you haven't performed yet the search herein, try going to the topmost right zone of this page (Custom Search), type the keywords used in Tags field when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.


And about your nick in particular...


May I suggest you to change your nick name? It's too long and it overlaps the comment area making it unreadable (Click on your name, Edit). Thank you.


Regards!
 
Back
Top