Strings n things

ExcelEddie

New Member
Joined
Feb 18, 2013
Messages
22
Hi all,

I hope this is possible...

I have a formula that loads a text string to a cell
The formula is a VLOOKUP (See below - nothing special)
The text string shows in the cell that contains the formula but only to the pre-determined boundary of the cell
So far, so good

Is VBA clever enough to expand the cell vertically to include the text string found by the formula?

Formula:
=IF(VLOOKUP($C$4,DB!$A:$QD,50,FALSE)="","",VLOOKUP($C$4,DB!$A:$QD,50,FALSE))

Thank you in advance
 
Do you have the cells set to wrap the text (I think you need this if you want the height to be adjusted automatically)?
Do you have any merged cells on your sheet?
Hi Joe,

I do indeed have wrap text set and yes there are merged cells on the page but not on the cells I need to resize.

I have tried MIke's entirerow.autofit but this doesn't seem to work.

Maybe I need to go about this another way.

Thanks for your help, I'll let you know if I get anywhere.

:)

Eddie
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi Joe,

I do indeed have wrap text set and yes there are merged cells on the page but not on the cells I need to resize.

I have tried MIke's entirerow.autofit but this doesn't seem to work.

Maybe I need to go about this another way.

Thanks for your help, I'll let you know if I get anywhere.

:)

Eddie
Out of curiosity, if you remove all merged cells, does it work?
Even if they are not in the cells you are trying to change, if they are in the same row or column as the cell you are trying to change, it could interfere with it.
 
Upvote 0

Forum statistics

Threads
1,224,852
Messages
6,181,406
Members
453,036
Latest member
Koyaanisqatsi

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