Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Strange "paste" behaviour

Hi all,

I have a problem with pasting a tab-delimited text file
programmatically into a worksheet, e.g. by using
Worksheet.Paste(Range, Type.Missing) (I use C# and Office 2000). It
basically does not recognize floating numbers, e.g. they turn out as
integeres. However, if paste the file via short-cut Ctr-V or the paste
command from the toolbar, everything works fine.

Thanks,
Carl

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Strange "paste" behaviour

Sure the cells are not just formatted to show no decimal values. If you
select the cell manually and look in the formula bar, do you see the original
decimal/floating point value?

--
Regards,
Tom Ogilvy


" wrote:

Hi all,

I have a problem with pasting a tab-delimited text file
programmatically into a worksheet, e.g. by using
Worksheet.Paste(Range, Type.Missing) (I use C# and Office 2000). It
basically does not recognize floating numbers, e.g. they turn out as
integeres. However, if paste the file via short-cut Ctr-V or the paste
command from the toolbar, everything works fine.

Thanks,
Carl


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Strange "paste" behaviour

On 7 Feb., 14:43, Tom Ogilvy
wrote:
Sure the cells are not just formatted to show no decimal values. If you
select the cell manually and look in the formula bar, do you see the original
decimal/floating point value?


This was the first thing I had checked before posting here. No, it
seems to be no direct format issue. Furthermore, why does paste via
Toolbar's Paste button work then, e.g. CTRL-v ? I'm just wondering
whether CTRL+v actually does something different then Worksheet.Paste
only.


Reply
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
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM
What is Error "Method "Paste" of object "_Worksheet" failed? vat Excel Programming 7 February 17th 06 08:05 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Excel VBA ".value" / Strange Behaviour!!! ifiaz Excel Programming 18 November 16th 05 04:25 AM
Strange "FormatCells" behaviour Mike Hyndman Excel Worksheet Functions 0 October 23rd 05 05:30 PM


All times are GMT +1. The time now is 03:48 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"