+ Reply to Thread
Results 1 to 2 of 2

need a macro that copies the data from the notepad and pastes it onto an excel workbook

  1. #1
    Registered User
    Join Date
    07-28-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    need a macro that copies the data from the notepad and pastes it onto an excel workbook

    Hello All,

    I need a macro that copies the data from the notepad and pastes it onto an excel workbook.I have hundreds of data.

    Presently the data is in the below form:

    Name:
    ABC


    Age: 14 Country:India

    I need the script to copy the above data from notepad and paste it to excel in the below format:

    Name Age Country

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

    Re: need a macro that copies the data from the notepad and pastes it onto an excel workboo

    Hello Vidya_1,

    Welcome to the Forum!

    This macro will parse a single text file for data you require and output that data to cells A2:C2 down to the last file entry. It is assumed cells A1:C1 contain column headers.
    Change the variable Filename to match the path and name of the text file to parse.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. Write a macro that filters, copies and pastes data according to a drop-down list
    By ClaraW89 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2012, 08:43 AM
  2. [SOLVED] Automating a macro that copies and pastes data and pastes 2 rows under the previous one.
    By thebank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2012, 05:02 PM
  3. I have a script in where it copies a sheet's data, and pastes it, but over pastes...
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2012, 02:20 AM
  4. Replies: 0
    Last Post: 07-27-2011, 09:48 PM
  5. [SOLVED] A Macro that Copies from Excel & Pastes into a webpage
    By Eric in forum Excel General
    Replies: 1
    Last Post: 07-13-2006, 07:45 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