Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default format +44785656656 as text

Hi,

I am using vb.net and excel automation to copy a dataset from my window app
to excel. I copy the data to the clipboard and then paste into an excel
worksheet in a particular range. The problem I have is that one of my
columns contains phone numbers in the following format +4478106356546.
Because of the "+" all the numbers in that column is displayed something
like 4.47811E+15. I would like to format that column and tell it display
it's values as text. Does anyone know how to do this or have any other
ideas.

Thanks
Sumesh


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default format +44785656656 as text

Format the column as text before you paste.

--
Regards,
Tom Ogilvy

"Sumesh" wrote in message
...
Hi,

I am using vb.net and excel automation to copy a dataset from my window

app
to excel. I copy the data to the clipboard and then paste into an excel
worksheet in a particular range. The problem I have is that one of my
columns contains phone numbers in the following format +4478106356546.
Because of the "+" all the numbers in that column is displayed something
like 4.47811E+15. I would like to format that column and tell it display
it's values as text. Does anyone know how to do this or have any other
ideas.

Thanks
Sumesh




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default format +44785656656 as text

Thanks for the quick reply.
How do I format the column as text? As I mentioned the dataset is changed
into a tab delimited string, which I copy into the clipboard which I paste
into excel. So I don't how I can change the format to text. I can only think
of changing the format after I paste to excel.
Appreciate your thoughts or ideas.

Thanks
Sumesh



"Tom Ogilvy" wrote in message
...
Format the column as text before you paste.

--
Regards,
Tom Ogilvy

"Sumesh" wrote in message
...
Hi,

I am using vb.net and excel automation to copy a dataset from my window

app
to excel. I copy the data to the clipboard and then paste into an excel
worksheet in a particular range. The problem I have is that one of my
columns contains phone numbers in the following format +4478106356546.
Because of the "+" all the numbers in that column is displayed something
like 4.47811E+15. I would like to format that column and tell it display
it's values as text. Does anyone know how to do this or have any other
ideas.

Thanks
Sumesh






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default format +44785656656 as text

Columns(2).Numberformat = "@"
do the paste

--
Regards,
Tom Ogilvy

"Sumesh" wrote in message
...
Thanks for the quick reply.
How do I format the column as text? As I mentioned the dataset is changed
into a tab delimited string, which I copy into the clipboard which I paste
into excel. So I don't how I can change the format to text. I can only

think
of changing the format after I paste to excel.
Appreciate your thoughts or ideas.

Thanks
Sumesh



"Tom Ogilvy" wrote in message
...
Format the column as text before you paste.

--
Regards,
Tom Ogilvy

"Sumesh" wrote in message
...
Hi,

I am using vb.net and excel automation to copy a dataset from my

window
app
to excel. I copy the data to the clipboard and then paste into an

excel
worksheet in a particular range. The problem I have is that one of my
columns contains phone numbers in the following format +4478106356546.
Because of the "+" all the numbers in that column is displayed

something
like 4.47811E+15. I would like to format that column and tell it

display
it's values as text. Does anyone know how to do this or have any

other
ideas.

Thanks
Sumesh








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
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Change Date Format to Specific Text Format When Copying [email protected] Excel Discussion (Misc queries) 4 December 23rd 08 03:43 PM
Change number (in text format) to numeric format Pam Excel Discussion (Misc queries) 5 October 24th 05 07:45 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM


All times are GMT +1. The time now is 01:19 AM.

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"