sorry for confusion . it is done thanks alot

On Sun, Dec 4, 2011 at 10:04 PM, rekha siri <rekha.siri2...@gmail.com>wrote:

> i did it by bringing line up it ran well ... but it did not delete the
> records passed  step.
>
>
>
> On Sun, Dec 4, 2011 at 9:45 PM, dguillett1 <dguille...@gmail.com> wrote:
>
>>   From the ss it appears that you did not bring up the next line. Bring
>> it up or insert a continuation character _
>>
>> Don Guillett
>> SalesAid Software
>> dguille...@gmail.com
>>
>>  *From:* rekha siri <rekha.siri2...@gmail.com>
>> *Sent:* Sunday, December 04, 2011 9:51 AM
>> *To:* excel-macros@googlegroups.com
>> *Subject:* Re: $$Excel-Macros$$ Re: importing text to excel
>>
>> i just changed the path and i am getting compile error please find the
>> screen shot for the same
>>
>>
>>
>> On Sun, Dec 4, 2011 at 5:40 PM, Sam Mathai Chacko <samde...@gmail.com>wrote:
>>
>>> working fine at my side. Cannot comment unless you send the excel file
>>> and the text file.
>>> Sam
>>>
>>>
>>> On Sun, Dec 4, 2011 at 3:20 PM, rekha siri <rekha.siri2...@gmail.com>wrote:
>>>
>>>> Sam thanks for your help in this concern however the below code  when i
>>>> try it , i am getting  bug in records passed. please assist in this
>>>> concern.
>>>>
>>>>
>>>> On Wed, Nov 30, 2011 at 4:55 PM, Sam Mathai Chacko 
>>>> <samde...@gmail.com>wrote:
>>>>
>>>>> How about this
>>>>>
>>>>> Sub T()
>>>>>
>>>>>    Dim rng As Range
>>>>>    Dim lngRow As Long
>>>>>    With ActiveSheet.QueryTables.Add(Connection:= _
>>>>>        "TEXT;P:\Macro\SAP Dump.text.txt", Destination:=Range("$A$1"))
>>>>>        .Name = "SAP Dump.text_1"
>>>>>        .FieldNames = True
>>>>>        .RowNumbers = False
>>>>>        .FillAdjacentFormulas = False
>>>>>        .PreserveFormatting = True
>>>>>        .RefreshOnFileOpen = False
>>>>>        .RefreshStyle = xlInsertDeleteCells
>>>>>        .SavePassword = False
>>>>>        .SaveData = True
>>>>>        .AdjustColumnWidth = True
>>>>>        .RefreshPeriod = 0
>>>>>        .TextFilePromptOnRefresh = False
>>>>>        .TextFilePlatform = 65001
>>>>>        .TextFileStartRow = 1
>>>>>        .TextFileParseType = xlDelimited
>>>>>        .TextFileTextQualifier = xlTextQualifierDoubleQuote
>>>>>        .TextFileConsecutiveDelimiter = False
>>>>>        .TextFileTabDelimiter = True
>>>>>        .TextFileSemicolonDelimiter = False
>>>>>        .TextFileCommaDelimiter = False
>>>>>        .TextFileSpaceDelimiter = False
>>>>>        .TextFileOtherDelimiter = "|"
>>>>>        .TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1)
>>>>>        .TextFileTrailingMinusNumbers = True
>>>>>        .Refresh BackgroundQuery:=False
>>>>>    End With
>>>>>    Set rng = Cells.Find(What:="Records passed", LookAt:=xlPart)
>>>>>    Range("A1", rng.Offset(-1)).EntireRow.Delete
>>>>>    Cells.Replace What:="--", Replacement:="", LookAt:=xlPart,
>>>>> SearchOrder _
>>>>>        :=xlByRows, MatchCase:=False, SearchFormat:=False,
>>>>> ReplaceFormat:=False
>>>>>
>>>>> End Sub
>>>>>
>>>>> Sam
>>>>>
>>>>> On Nov 29, 11:28 pm, rekha siri <rekha.siri2...@gmail.com> wrote:
>>>>> > subjectimporting text to excelmailed-bygmail.com
>>>>> > hide details 11:47 PM (7 minutes ago)
>>>>> > Hi experts,
>>>>> >
>>>>> > I use the below code to import the text from notepad to excel
>>>>> >
>>>>> > Sub Macro1()
>>>>> >     With ActiveSheet.QueryTables.Add(Connection:= _
>>>>> >         "TEXT;C:\SAP Dump.txt", _
>>>>> >         Destination:=Range("A1"))
>>>>> >         .Name = "tab-file"
>>>>> >         .FieldNames = True
>>>>> >         .RowNumbers = False
>>>>> >         .FillAdjacentFormulas = False
>>>>> >         .PreserveFormatting = True
>>>>> >         .RefreshOnFileOpen = False
>>>>> >         .RefreshStyle = xlInsertDeleteCells
>>>>> >         .SavePassword = False
>>>>> >         .SaveData = True
>>>>> >         .AdjustColumnWidth = True
>>>>> >         .RefreshPeriod = 0
>>>>> >         .TextFilePromptOnRefresh = False
>>>>> >         .TextFilePlatform = 437
>>>>> >         .TextFileStartRow = 1
>>>>> >         .TextFileParseType = xlDelimited
>>>>> >         .TextFileTextQualifier = xlTextQualifierDoubleQuote
>>>>> >         .TextFileConsecutiveDelimiter = False
>>>>> >         .TextFileTabDelimiter = True
>>>>> >         .TextFileSemicolonDelimiter = False
>>>>> >         .TextFileCommaDelimiter = False
>>>>> >         .TextFileSpaceDelimiter = False
>>>>> >         .TextFileColumnDataTypes = Array(1, 1)
>>>>> >         .TextFileTrailingMinusNumbers = True
>>>>> >         .Refresh BackgroundQuery:=False
>>>>> >     End With
>>>>> > End Sub
>>>>> >
>>>>> > But i require small modification here please assist in this concern
>>>>> >
>>>>> > after import i find using control + F The word with Records passed
>>>>> >
>>>>> > till there ill completely delete the upper rows means till there ill
>>>>> delete.
>>>>> >
>>>>> > and then do text to column remove all -,| through text to columns
>>>>> >
>>>>> > and format it.
>>>>> >
>>>>> > Thanks,
>>>>> > Rekha
>>>>> >
>>>>> >  SAP Dump.text.zip
>>>>> > 2680KViewDownload
>>>>>
>>>>> --
>>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>>
>>>>> 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)  Cross-promotion of, or links to, forums competitive to this forum
>>>>> in signatures are prohibited.
>>>>>
>>>>> NOTE  : Don't ever post personal or confidential data in a workbook.
>>>>> Forum owners and members are not responsible for any loss.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------------------------------
>>>>> To post to this group, send email to excel-macros@googlegroups.com
>>>>>
>>>>
>>>> --
>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>
>>>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>>>> signatures are prohibited.
>>>>
>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>> Forum owners and members are not responsible for any loss.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------------------------------
>>>> To post to this group, send email to excel-macros@googlegroups.com
>>>>
>>>
>>>
>>>
>>> --
>>> Sam Mathai Chacko
>>>
>>> --
>>> FORUM RULES (934+ members already BANNED for violation)
>>>
>>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>>> signatures are prohibited.
>>>
>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>> Forum owners and members are not responsible for any loss.
>>>
>>>
>>> ------------------------------------------------------------------------------------------------------
>>> To post to this group, send email to excel-macros@googlegroups.com
>>>
>>
>> --
>> FORUM RULES (934+ members already BANNED for violation)
>>
>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>> --
>> FORUM RULES (934+ members already BANNED for violation)
>>
>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>
>

-- 
FORUM RULES (934+ members already BANNED for violation)

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)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to