+ Reply to Thread
Results 1 to 5 of 5

problem with pasting data from notepad file

  1. #1
    Registered User
    Join Date
    03-17-2010
    Location
    durham
    MS-Off Ver
    Excel 2007
    Posts
    7

    Smile problem with pasting data from notepad file

    Hello all,

    I have been trying to open a notepad file, copy and paste the contents to excel with the following code:

    Please Login or Register  to view this content.
    the code does copy the contents to column A but the data covers from A to I.

    Can someone tell me how to edit the code so it takes the contents and pastes over A to I? I am not a coder and not really sure how to do this.

    Thanks in advance.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: problem with pasting data from notepad file

    How is the text delimited, or is it fixed width columns?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    03-17-2010
    Location
    durham
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: problem with pasting data from notepad file

    Before I tried this code I have been manually pasting it in excel by highlighting all of column A and pasting. I then used text to columns in the data tab with delimeter > tab and comma. This works but I have to do this 36 times for every report and there's 20 reports so that's why I wanted to automate the whole process with the press of a button.

    When I do this with the code, it doesn't.

    Forgot to mention I only have to take out a column of numbers from this file. I can't just highlight the 1st number and use shift and end to go to the last number. I have to delete a row after a certain number of rows about 3 times.
    Last edited by hunterage2000; 11-13-2014 at 04:51 AM. Reason: more detail

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: problem with pasting data from notepad file

    It sounds like it's a csv file - can't you just open it directly with excel? Or are you trying to add it to an existing sheet?

  5. #5
    Registered User
    Join Date
    03-17-2010
    Location
    durham
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: problem with pasting data from notepad file

    its a .dat file that I opened with notepad but it has worked in excel so nice one mate I'll have a bit play and get back with the results.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need a second look at my macro for pasting in notepad
    By Nate87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2013, 04:53 PM
  2. Pasting Excel data to Notepad
    By butcher11 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-09-2013, 04:28 PM
  3. Extract Data from Notepad file into excel
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-21-2012, 01:31 PM
  4. Analyze & Filter data in a notepad file
    By Rudodoo in forum Excel General
    Replies: 1
    Last Post: 12-01-2005, 06:00 AM
  5. [SOLVED] Pasting from Notepad
    By Al in forum Excel General
    Replies: 1
    Last Post: 06-13-2005, 10:05 PM

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