Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
IWT IWT is offline
external usenet poster
 
Posts: 2
Default Setting Cell Type From Word Macro

Hi,

I'm writing a macro in Word that copies some data over from Word and
puts it into an Excel spreadsheet.

My question is, how do you define the type (e.g. text/number/date etc)
of a cell in Excel. I have some values with an undefined number of
leading zeros so would like to define them as text instead.

Many thanks,

Tom

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Setting Cell Type From Word Macro

You could concatenate an apostrophe as a prefix character to the values with
leading zeroes to convert them to text.

--
Kevin Backmann


"IWT" wrote:

Hi,

I'm writing a macro in Word that copies some data over from Word and
puts it into an Excel spreadsheet.

My question is, how do you define the type (e.g. text/number/date etc)
of a cell in Excel. I have some values with an undefined number of
leading zeros so would like to define them as text instead.

Many thanks,

Tom


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
formula setting cell type to blank and conditional formatting CEG_Staffer[_2_] Excel Worksheet Functions 6 July 17th 09 06:46 PM
Trying to change the background of a cell if I type a certain word T-DOGG01 New Users to Excel 1 May 25th 08 10:30 PM
Trying to change the background of a cell if I type a certain word T-DOGG01 Excel Discussion (Misc queries) 2 May 25th 08 10:06 PM
I type a word in a cell, tab out and it changes Laurie New Users to Excel 1 March 5th 08 07:38 PM
I want to type the letter Y in a cell and have the word Yes appea. jhardw New Users to Excel 3 April 2nd 05 12:24 AM


All times are GMT +1. The time now is 05:10 PM.

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"