LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Syntax for Cell type

On 03-Mar-17 8:00 PM, Peter T wrote:
"Tim Childs" wrote in message
Hi

In VBA I want to get the cell information on a cell e.g. in the
Application itself, I can put:
=CELL("type",A1)
in Cell B1
However, I would like to extract the same information about (multiple)
cells directly from VBA itself i.e. in a procedure, without entering a
formula into an Excel cell.
Please can you give me the VBA syntax for that.


CELL + "type" doesn't tell you much - the cell contains a string, is
empty, or anything else. Other VBA functions can tell you a lot more but
give some idea of what you're looking for and what you want to do with it.

Peter T


Thanks for response

I want to distinguish between cells that have been output as labels and
those that are values. In the latter, dates are numbers and in the
former, I will use TextToColumns to convert the "date labels" to proper
date values. I hope that clarifies my request, if not, please do say so.

Tim


 
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
Syntax for AutoCad File Type *.dwg Benjamin Excel Programming 2 July 7th 09 09:10 PM
cell reference syntax Fred Excel Worksheet Functions 2 December 16th 08 04:01 PM
VBA Import Convert Data Type from Type 1 to Type 2 u473 Excel Programming 3 October 21st 08 08:22 PM
cell value syntax miek Excel Programming 2 August 12th 08 09:19 PM
Worksheet().Range(Cell(), Cell()) syntax? Ouka[_6_] Excel Programming 10 July 27th 05 12:50 AM


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