Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The length:
Function length(R As Range) As Integer Dim s As String s = R.Value length = Len(s) End Function To set format: Sub Macro1() Columns("F:F").Select Selection.NumberFormat = "@" End Sub Will, for example, set the format of the cells in column F to text. -- Gary''s Student " wrote: Dear Reader, I need length of the data type of excel and also want to know the technique to set the Excel column data type. These things I want with the help of Visual Basic Code. If it is possible to do so then please reply me as soon as possible. Regards, Sanjay Bol |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Passing a range of data to a function - Excel - visual basic | Excel Programming | |||
Can I run Visual Basic procedure using Excel Visual Basic editor? | Excel Programming | |||
Visual Basic macro run time error(13) type mismatch | Excel Discussion (Misc queries) | |||
visual basic & chart data labels | Excel Programming |