• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Make a cell in Excel display as text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make a cell in Excel display as text


  • Subject: Make a cell in Excel display as text
  • From: Jim Brandt <email@hidden>
  • Date: Tue, 04 Aug 2015 17:48:06 -0500

I need help with Excel scripting.

I'm building a spreadsheet that has a column that has numerical data but it needs to be shown as text. i.e. the value "0322" needs to be seen in the cell as 0322, not the number 322. I need the leading "0".

This can be done if I can figure out how to tell Excel that the cell contains text, not a number.

I tried using a formula:

set value of cell ("B" & RowNum) to "=text(" & (item 2 of RowItems) & ",\"0000\")"

but the people wanting the spreadsheet said I can't use a formula in the cell, it has to be the text of the numerical data only.

So, does anyone know how to tell Excel, using Applescript, that the format of a cell is text?

TIA,

Jim Brandt



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Make a cell in Excel display as text
      • From: Barry Wainwright <email@hidden>
  • Prev by Date: Re: Passing app property names
  • Next by Date: Re: List of numbers for encoding in Microsoft Word?
  • Previous by thread: Re: Passing app property names
  • Next by thread: Re: Make a cell in Excel display as text
  • Index(es):
    • Date
    • Thread