I have a sheet with fixed row heights, but I want the user to be able to view everything in the row. There is likely to be up to 500 text characters in the cell.
I wanted a scroll bar affect, within the cell. Although it is not true scrolling I thought I could use the vertical align (top/center/bottom) to mimic a scroll.
I added a Form scroll bar to the cell and when activated the macro looks at the scroll bar value and changes the vertical alignment accordingly, so... (cell with scrollbar is D7, Link Cell with scrollbar value is B7)
Sub ScrollBar46_Change()
Select Case Range("B7").Value
Case 2
Range("D7").VerticalAlignment = xlBottom
Case 1
Range("D7").VerticalAlignment = xlCenter
Case 0
Range("D7").VerticalAlignment = xlTop
End Select
End Sub
That seems to work fine, however I have now realised that when aligning to xlBottom excel doesn't show the end of the text string, but only about 200 characters in.
I know there is a visable limit of 1,024 for Excel versions before 2007, but it's not this that is affecting my sheet. (this is discussed here http://exceltips.vitalnews.com/Pages/T003163_Character_Limits_for_Cells.html)
So
i) Can I get around this somehow by using my current method?
ii) If not, any ideas how I can create a scrolling affect in a cell that will show all of the data in that cell?
I wanted a scroll bar affect, within the cell. Although it is not true scrolling I thought I could use the vertical align (top/center/bottom) to mimic a scroll.
I added a Form scroll bar to the cell and when activated the macro looks at the scroll bar value and changes the vertical alignment accordingly, so... (cell with scrollbar is D7, Link Cell with scrollbar value is B7)
Sub ScrollBar46_Change()
Select Case Range("B7").Value
Case 2
Range("D7").VerticalAlignment = xlBottom
Case 1
Range("D7").VerticalAlignment = xlCenter
Case 0
Range("D7").VerticalAlignment = xlTop
End Select
End Sub
That seems to work fine, however I have now realised that when aligning to xlBottom excel doesn't show the end of the text string, but only about 200 characters in.
I know there is a visable limit of 1,024 for Excel versions before 2007, but it's not this that is affecting my sheet. (this is discussed here http://exceltips.vitalnews.com/Pages/T003163_Character_Limits_for_Cells.html)
So
i) Can I get around this somehow by using my current method?
ii) If not, any ideas how I can create a scrolling affect in a cell that will show all of the data in that cell?