Results 1 to 22 of 22

Getting data from a notepad file

Threaded View

  1. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Getting data from a notepad file

    Hello Jenkins27,

    The only change I made was to the UserForm CommandButton code.
    Private Sub PartNumberFormDone_Click()
    
        Dim Data As Variant
        Dim Rng As Range
        
            Data = ReadData(TextBox1.Value)
            
            If IsEmpty(Data) Then
                TextBox1.SelStart = 0
                TextBox1.SelLength = Len(TextBox1.Value)
                TextBox1.SetFocus
            Else
                Range("A3", Cells(Rows.Count, "A").End(xlUp)).ClearContents
                Range("A3").Resize(UBound(Data) + 1) = TextBox1
                Set Rng = Range("B3:C3").Resize(UBound(Data) + 1)
                Rng.Value = Data
            End If
            
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Save Notepad through VBA Macro, having Copied Range of Cells, Pasted into notepad
    By analystbank in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-22-2014, 02:14 AM
  2. Opening Notepad a saved notepad file and copying the data on it
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2014, 06:18 PM
  3. [SOLVED] Notepad to excel and back to notepad
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2014, 10:33 AM
  4. Remove marching ants after notepad macro opens notepad
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-07-2014, 09:47 PM
  5. how to copy selected notepad text and paste it in other notepad with macro
    By Guru232 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 04-24-2013, 04:43 AM

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