Hi Ashish, Thank for the codes but i m not able to use them,
Can u give my the process how to start and how to end the same. On Tue, Jun 8, 2010 at 7:14 PM, ashish koul <koul.ash...@gmail.com> wrote: > ub importnotepaddata() > On Error GoTo xdd > > Dim FileName As String > FileName = Application.GetOpenFilename("Text Files (*.txt),*.txt", , > "Please select text file...") > Dim i As Long > i = 1 > Set objFSO = CreateObject("Scripting.FileSystemObject") > Set objFile = objFSO.OpenTextFile(FileName, 1) 'Change the Path to your > text file > > Do Until objFile.AtEndOfStream > strLine = objFile.ReadLine > If strLine <> "" Then > Cells(i, 1) = strLine > > i = i + 1 > If i = 1048575 Then > > > > > > > > > > '------------ INSERTING A NEW SHEET-------- > > Sheets.Add After:=Sheets(Sheets.Count) > > i = 1 > > > > > > End If > > > End If > Loop > > objFile.Close > Set objFSO = Nothing > xdd: > Exit Sub > > End Sub > > > On Tue, Jun 8, 2010 at 3:09 PM, Mahesh <mahender.bi...@gmail.com> wrote: > >> thanks for ur reply but i have around or more than 17 lacs record. >> >> What i want is a macro ro code which automatically move the rest record >> (next 7 lacs) to next sheet in the workbook. >> >> On Tue, Jun 8, 2010 at 1:50 PM, pankaj kumar <pank786ya...@gmail.com>wrote: >> >>> (to fileopen).......cmnd will solve d prob >>> >>> >>> On Mon, Jun 7, 2010 at 8:50 PM, Mahesh <mahender.bi...@gmail.com> wrote: >>> >>>> Dear All, >>>> >>>> Need your help on below mention issue. >>>> >>>> I have a notepad file which contains more than 10 lacs records. >>>> >>>> Can anyone give me a solution, how to open it in excel? >>>> >>>> -- >>>> With Love, >>>> Mahesh Bisht >>>> >>>> -- >>>> >>>> ---------------------------------------------------------------------------------- >>>> Some important links for excel users: >>>> 1. Follow us on TWITTER for tips tricks and links : >>>> http://twitter.com/exceldailytip >>>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 >>>> 3. Excel tutorials at http://www.excel-macros.blogspot.com >>>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com >>>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com >>>> >>>> To post to this group, send email to excel-macros@googlegroups.com >>>> >>>> <><><><><><><><><><><><><><><><><><><><><><> >>>> HELP US GROW !! >>>> >>>> We reach over 7000 subscribers worldwide and receive many nice notes >>>> about the learning and support from the group.Let friends and co-workers >>>> know they can subscribe to group at >>>> http://groups.google.com/group/excel-macros/subscribe >>>> >>> >>> -- >>> >>> ---------------------------------------------------------------------------------- >>> Some important links for excel users: >>> 1. Follow us on TWITTER for tips tricks and links : >>> http://twitter.com/exceldailytip >>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 >>> 3. Excel tutorials at http://www.excel-macros.blogspot.com >>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com >>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com >>> >>> To post to this group, send email to excel-macros@googlegroups.com >>> >>> <><><><><><><><><><><><><><><><><><><><><><> >>> HELP US GROW !! >>> >>> We reach over 7000 subscribers worldwide and receive many nice notes >>> about the learning and support from the group.Let friends and co-workers >>> know they can subscribe to group at >>> http://groups.google.com/group/excel-macros/subscribe >>> >> >> >> >> -- >> With Love, >> Mahesh Bisht >> >> -- >> >> ---------------------------------------------------------------------------------- >> Some important links for excel users: >> 1. Follow us on TWITTER for tips tricks and links : >> http://twitter.com/exceldailytip >> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 >> 3. Excel tutorials at http://www.excel-macros.blogspot.com >> 4. Learn VBA Macros at http://www.quickvba.blogspot.com >> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com >> >> To post to this group, send email to excel-macros@googlegroups.com >> >> <><><><><><><><><><><><><><><><><><><><><><> >> HELP US GROW !! >> >> We reach over 7000 subscribers worldwide and receive many nice notes about >> the learning and support from the group.Let friends and co-workers know they >> can subscribe to group at >> http://groups.google.com/group/excel-macros/subscribe >> > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > HELP US GROW !! > > We reach over 7000 subscribers worldwide and receive many nice notes about > the learning and support from the group.Let friends and co-workers know they > can subscribe to group at > http://groups.google.com/group/excel-macros/subscribe > -- With Love, Mahesh Bisht -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 7000 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe