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: 1
Default UsedRange.Copy copiess ##### instead of text

I have a macro that opens a tab delimited file. It then copies the data
into a new worksheet. One of the colunns has data 1000 characters, if
the column is formatted at text, 256 # get copied to the new sheet. If
the column is formatted as general, the correct data is copied.

I know a cell's width can only be 256, but the data can be 32,767. Why
is this happening?

Thanks

Workbooks.OpenText Filename:=l_ImportFileName, DataType:=xlDelimited,
Tab:=True, TextQualifier:=xlTextQualifierNone,
FieldInfo:=array_FieldInfo
Workbooks(txtBaseName).Activate
Worksheets(txtWorkSheetName).UsedRange.Copy
Application.DisplayAlerts = False
Workbooks(txtBaseName).Close
Application.DisplayAlerts = True

Workbooks(txtTossWorkBookName).Activate

Worksheets(GlobalTossSheet).Activate

ActiveSheet.Paste
Destination:=Worksheets(GlobalTossSheet).Range("B9 ")

 
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
UsedRange and CurrentRegion Tomas M.[_2_] Excel Programming 5 September 16th 04 03:23 PM
UsedRange Damien McBain Excel Programming 3 July 4th 04 01:55 PM
UsedRange problem Kobayashi[_26_] Excel Programming 4 January 30th 04 05:17 PM
UsedRange problem Andy Excel Programming 2 September 18th 03 05:17 PM
Usedrange Terry VanDuzee Excel Programming 6 August 10th 03 05:57 PM


All times are GMT +1. The time now is 12:13 PM.

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

About Us

"It's about Microsoft Excel"