Results 1 to 3 of 3

Notepad replace all

Threaded View

  1. #1
    Registered User
    Join Date
    04-02-2010
    Location
    Warren, MI
    MS-Off Ver
    Excel 2007
    Posts
    5

    Notepad replace all

    Hello,

    I am have a large (very large, 138k rows) spreadsheet that a coworker needs in a an .xls format for the backend of an application. I understand that this wont work, due to .xls row limits so, we decided on a delimited file. Whatever wizard she is using (i am unfamiliar with) to import the data into her application gives her the option for a | (pipeline) delimited file.

    I saved the report as a tab delimited file with the intention to do a replace all from tab character to |. I am currently using this routine but....

    Sub Notepad()
    
        Dim appNotepad
        Dim file
        Dim strTab
        Dim strPipe
        file = "notepad C:\Users\Micheal\Documents\test.txt"
        appNotepad = Shell(file, vbNormalFocus)
        AppActivate appNotepad
        strTab = "	"
        Debug.Print strTab
        strPipe = "|"
        SendKeys "%ER" & strTab & "{Tab}" & strPipe & "%A", False
    
    End Sub
    Notepad doesn't seem to recognize the Tab string.

    This is driving me nuts.
    Last edited by MMaher; 02-04-2011 at 08:31 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1