Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Want $1 to appear in a cell - Text


I want to have "$1" appear in the cell. This is how I formatted the cell

..Range(currRow, currColumn).NumberFormat = "Text"

..Range(currRow, currColumn).Value = "$1"



When I view the contents of the cell it shows

T1900xt



What is going on? How can I get "$1" to appear in the cell





Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Want $1 to appear in a cell - Text

Range(currRow, currColumn).NumberFormat = "@"

--
HTH

Bob

(change the xxxx to gmail if mailing direct)
"Henry Jones" wrote in message
...

I want to have "$1" appear in the cell. This is how I formatted the cell

.Range(currRow, currColumn).NumberFormat = "Text"

.Range(currRow, currColumn).Value = "$1"



When I view the contents of the cell it shows

T1900xt



What is going on? How can I get "$1" to appear in the cell





Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Want $1 to appear in a cell - Text

Thanks for the info, the results are better but not exactly what I want.
The cell now has a "1" in it without the dollar sign. I would like to keep
the dollar sign. I also noticed that the cell is left justified, so it
seems it isn't stored as a number, but a character.

H

"Bob Phillips" wrote in message
...
Range(currRow, currColumn).NumberFormat = "@"

--
HTH

Bob

(change the xxxx to gmail if mailing direct)
"Henry Jones" wrote in message
...

I want to have "$1" appear in the cell. This is how I formatted the cell

.Range(currRow, currColumn).NumberFormat = "Text"

.Range(currRow, currColumn).Value = "$1"



When I view the contents of the cell it shows

T1900xt



What is going on? How can I get "$1" to appear in the cell





Thanks






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
Copy text from cell to cell with one cell changing text Bobby Excel Worksheet Functions 5 March 15th 07 11:09 PM
select text in cell based on text from another cell, paste the text at the begining of a thrid cell, etc... jsd219 Excel Programming 0 October 19th 06 05:04 PM
Add text in a cell based on colour of text in another cell Ian Richardson ACITP Excel Programming 3 July 24th 06 04:34 PM
Deleting Rows based on text in cell & formatting cell based on text in column beside it Steve Excel Programming 4 February 26th 04 03:31 PM
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' Dan E[_2_] Excel Programming 4 July 30th 03 06:43 PM


All times are GMT +1. The time now is 02:49 PM.

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"