Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Defining a type of the cell

How can I pre-define the type of the cell using VBA?
I need to pre-define the cell type from General to Text, Number or similar,
before inputing data within the specified cell...

Tnx.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Defining a type of the cell

Range("A1").NumberFormat = "@" 'text

Range("A1").NumberFormat = "#,##0.00"

Range("A1").NumberFormat = "General"

etc.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"backspace" wrote in message ...
How can I pre-define the type of the cell using VBA?
I need to pre-define the cell type from General to Text, Number or

similar,
before inputing data within the specified cell...

Tnx.




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
defining a name in a cell? mp@ea New Users to Excel 3 July 15th 07 08:50 AM
Defining cell with only through 1 - 32 Zee New Users to Excel 2 September 23rd 06 11:49 PM
Defining a Cell for Save as file name psasales Excel Discussion (Misc queries) 0 September 21st 05 06:51 PM
Defining a cell to name file TimlmiT Excel Discussion (Misc queries) 1 May 24th 05 04:30 PM
Defining input box data type? Big Chris[_30_] Excel Programming 4 January 30th 04 04:13 PM


All times are GMT +1. The time now is 02:24 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"