LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Weird issue with cell spacing

Hi,

I am trying to write cell values to a WS from VBA. I am trying to add
line feeds with Chr(10) to the cell if I will be adding more then 1
item to the same cell. I keep getting these random big spaces above
the text (Click the picture below for a better understanding). I try
to autofit the row, still won't shrink it down, and there is other then
what is being displayed. Here is my code.

'If data exists then concatanate
If LenB(findRange.Offset(0, ft + 1).Value) 0 Then
findRange.Offset(0, ft + 1).Value = findRange.Offset(0, ft +
1).Value & Chr(10) & _ Format(cellRow.Columns(colPCCBFinal).Value,
"m/dd/yyyy") & _ cellRow.Columns(colRevNum)
Else
findRange.Offset(0, ft + 1).Value =
Format(cellRow.Columns(colPCCBFinal).Value, "m/dd/yyyy") & " " &
cellRow.Columns(colRevNum)
End If

http://img137.imageshack.us/img137/4143/excel1aq.jpg


Thanks,
RishiD

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please please help!! Weird coding issue Neil Holden Excel Discussion (Misc queries) 1 February 12th 10 03:48 PM
Weird issue with very simple line chart - urgent Totteridge Ram[_2_] Excel Discussion (Misc queries) 3 October 9th 09 09:49 AM
Weird Printing Issue Michelle K Excel Discussion (Misc queries) 0 November 27th 06 08:38 PM
This is Weird - Dead Simple Issue with Sum Function Neilibeg Excel Worksheet Functions 2 July 16th 05 08:15 PM
weird date issue Jon Tillman Excel Programming 1 June 19th 04 12:41 AM


All times are GMT +1. The time now is 03:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"