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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,214,833
Messages
6,121,865
Members
449,052
Latest member
Fuddy_Duddy

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