Thanks Lalit for the solution, though the solution to my query is quite 
simpler......while using text to column on the very next step choose text for 
each column within text to column window.  
Regards  Pooja Sharma
Sent from my iPad

On Aug 29, 2013, at 2:09 PM, Lalit Mohan Pandey <mohan.pande...@gmail.com> 
wrote:

> Try this
> 
> Option Explicit
> 
> Sub SplitValues()
> 
>     Dim lngLoop             As Long
>     Dim vararrRawData()     As Variant
>     Dim vararrSplitData     As Variant
>     
>     'Const variable change accordingly as per your requirement
>     Const strDataRangeToSplit       As String = "C1:C65536"
>     Const strDataShtName            As String = "Sheet1"
>     Const strDataOutputShtName      As String = "Sheet1"
>     Const strDataOutputCell         As String = "J1"
>     
>     With ThisWorkbook
>         With .Worksheets(strDataShtName)
>             vararrRawData = .Range(strDataRangeToSplit).Value
>         End With
>         With .Worksheets(strDataOutputShtName)
>             For lngLoop = LBound(vararrRawData) To UBound(vararrRawData)
>                 .Range(strDataOutputCell).Offset(lngLoop - 1, 0).Value = 
> vararrRawData(lngLoop, 1)
>                 vararrSplitData = Split(Replace(vararrRawData(lngLoop, 1), 
> ".", ".'"), ".")
>                 If UBound(vararrSplitData) = 0 Then
>                     vararrSplitData(0) = vbNullString
>                 End If
>                 .Range(strDataOutputCell).Offset(lngLoop - 1, 1).Resize(, 
> UBound(vararrSplitData) + 1).Value = vararrSplitData
>             Next lngLoop
>         End With
>     End With
>     
>     lngLoop = Empty
>     Erase vararrRawData
>     vararrSplitData = Empty
> 
> End Sub
> 
> 
> On Thursday, 29 August 2013 13:32:17 UTC+5:30, Pooja wrote:
>> 
>> Hi All,
>> 
>> Please advice on the below query.
>> 
>> Regards
>> Pooja Sharma
>> Sent from BlackBerry® on Airtel
>> From: Pooja Sharma <pooja....@dc.ibm.com>
>> Date: Thu, 29 Aug 2013 13:19:08 +0530
>> To: <vatspo...@gmail.com>
>> Subject: Query on Text to Columns function
>> 
>> Hi All, 
>> 
>> I am seeking for your support on one of my file (attached), wherein I have 
>> to separate the values in different columns, the separator (Delimitor) value 
>> is the "." sign. 
>> 
>> I was trying to do this with the function text to columns, but it removes 
>> the zero value and I need these 0 values too. 
>> 
>> Please advice.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to