Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Wrap not working
Hi,
I am placing information to a worksheet via vba code and the wrap is not working. How do I correct this? Here is my code: Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With End With End Sub -- Thanks for your help. Karen53 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Wrap not working
I realize now the wrap is there but the row height is not adjusting to show
the text. -- Thanks for your help. Karen53 "Karen53" wrote: Hi, I am placing information to a worksheet via vba code and the wrap is not working. How do I correct this? Here is my code: Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With End With End Sub -- Thanks for your help. Karen53 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Wrap not working
Hi,
I've added row autofit but it still is not sizing. What am I doing wrong? Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With .Rows(Choice & ":" & Choice).EntireRow.AutoFit End With End Sub -- Thanks for your help. Karen53 "Karen53" wrote: Hi, I am placing information to a worksheet via vba code and the wrap is not working. How do I correct this? Here is my code: Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With End With End Sub -- Thanks for your help. Karen53 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Wrap not working
Try this change
from: With MainPagepg to: With sheets(MainPagepg) or With sheets("MainPagepg") "Karen53" wrote: Hi, I've added row autofit but it still is not sizing. What am I doing wrong? Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With .Rows(Choice & ":" & Choice).EntireRow.AutoFit End With End Sub -- Thanks for your help. Karen53 "Karen53" wrote: Hi, I am placing information to a worksheet via vba code and the wrap is not working. How do I correct this? Here is my code: Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With End With End Sub -- Thanks for your help. Karen53 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Wrap not working
Hi,
Thank you for your suggestions. I'm using the sheets code name, though. They did not work. -- Thanks for your help. Karen53 "Joel" wrote: Try this change from: With MainPagepg to: With sheets(MainPagepg) or With sheets("MainPagepg") "Karen53" wrote: Hi, I've added row autofit but it still is not sizing. What am I doing wrong? Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With .Rows(Choice & ":" & Choice).EntireRow.AutoFit End With End Sub -- Thanks for your help. Karen53 "Karen53" wrote: Hi, I am placing information to a worksheet via vba code and the wrap is not working. How do I correct this? Here is my code: Sub SaveTenantName(Choice) With MainPagepg 'save Tenants Name With .Cells(Choice, 6) .NumberFormat = "General" .HorizontalAlignment = xlLeft .WrapText = True .Value = frmStoreData.txtTenantName.Value End With End With End Sub -- Thanks for your help. Karen53 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Wrap Text not working in places | Excel Discussion (Misc queries) | |||
Word Wrap Not Working | Excel Worksheet Functions | |||
Text wrap not working properly in Excel | Excel Discussion (Misc queries) | |||
Word Wrap not working correctly | Excel Worksheet Functions | |||
word wrap not working | Excel Discussion (Misc queries) |