Height conflict

elisep

New Member
Joined
Nov 17, 2005
Messages
23
Hi!

I've got an excel file (should really be a database, but that's another issue!) that's got lots of needs. Among them, my boss would like to set a minimum row-height. We have some very long (text) cell-contents, though, and I'm finding that when I specify row height there's no way to auto-fit to show all of the longer cells. Is there a workaround?! There's no way that I could go through and manually autofit cells every time they snap back to a specified height (which seems to happen every time I run a 'sort' on the file.

HELP! (please!!)

thanks much!
e
 
This was working fine, but is now triggering an error to the tune of "variable not defined" refering to 'n.' Is there a way to work this?

Thanks for any assistance...

elise
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hmmm, not really sure about this because I can't replicate the error.

It might be that you have required the declaration of all variables in your VB Editor (also referred to as Option Explicit).

I think to resolve this, try adding a new variable declaration at the top of the macro (on a separate line). This would read:

Dim n As Integer

Please try this and let me know if you still receive the error.

Cheers,
Andy
 
Upvote 0
Andy,

That seemed to do the trick. Thank you, again!

elise

(I'm going to try to make this a BeforePrint event today, as well... will take a stab solo, but might end up posting again...)
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top