+ Reply to Thread
Results 1 to 2 of 2

Setting Cell Type From Word Macro

  1. #1
    IWT
    Guest

    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. #2
    Kevin B
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1