+ Reply to Thread
Results 1 to 13 of 13

Macro-Launch Notepad from Excel and save data in notepad and save with naming conventio

  1. #1
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Macro-Launch Notepad from Excel and save data in notepad and save with naming conventio

    Hello Experts

    Request you to help me build a macro to solve my current problem.

    In excel sheet, I generally have cell entries of several thousands in Col 1.

    I need to create macro where
    a)It should automatically copy paste 1-1500 rows and paste them in Notepad and save notepad as Notepad 1.
    b)Then it should copy paste values from 1501 to 3000 and paste them in Notepad and save notepad as Notepad 2.
    c) Then it should copy paste values from 3001 to 4500 and paste them in Notepad and save notepad as Notepad 3.
    d) and so on till the end of the Column1 values.

    Data in column one in excel is something like below, and generally its of several thousands :-
    http://subscriber.com/H/company360/o...23039000000000
    http://subscriber.com/H/company360/o...nyId=463436001
    http://subscriber.com/H/company360/o...nyId=468717210
    http://subscriber.com/H/company360/o...nyId=468197934
    http://subscriber.com/H/company360/o...nyId=463700194
    http://subscriber.com/H/company360/o...nyId=564693430
    http://subscriber.com/H/company360/o...nyId=564657070
    http://subscriber.com/H/company360/o...nyId=469192392
    http://subscriber.com/H/company360/o...nyId=633439476
    http://subscriber.com/H/company360/o...nyId=477301910
    http://subscriber.com/H/company360/o...nyId=465651615
    http://subscriber.com/H/company360/o...nyId=462424017
    http://subscriber.com/H/company360/o...nyId=465729320
    http://subscriber.com/H/company360/o...nyId=464560759
    http://subscriber.com/H/company360/o...nyId=460474344
    http://subscriber.com/H/company360/o...nyId=562930578
    http://subscriber.com/H/company360/o...nyId=464288241
    http://subscriber.com/H/company360/o...nyId=464120716
    http://subscriber.com/H/company360/o...nyId=464673227
    http://subscriber.com/H/company360/o...nyId=464511133
    http://subscriber.com/H/company360/o...nyId=512728098
    http://subscriber.com/H/company360/o...nyId=565270766
    http://subscriber.com/H/company360/o...nyId=462069021
    http://subscriber.com/H/company360/o...nyId=560668006
    http://subscriber.com/H/company360/o...nyId=564947158
    http://subscriber.com/H/company360/o...nyId=468717210
    http://subscriber.com/H/company360/o...nyId=564693430
    http://subscriber.com/H/company360/o...nyId=633439476
    http://subscriber.com/H/company360/o...nyId=465651615
    http://subscriber.com/H/company360/o...nyId=462424017
    http://subscriber.com/H/company360/o...nyId=464288241
    http://subscriber.com/H/company360/o...nyId=464120716
    http://subscriber.com/H/company360/o...nyId=462069021
    http://subscriber.com/H/company360/o...nyId=564947158
    http://subscriber.com/H/company360/o...nyId=564681971
    http://subscriber.com/H/company360/o...nyId=464552285
    http://subscriber.com/H/company360/o...nyId=468670851
    http://subscriber.com/H/company360/o...nyId=768030285
    http://subscriber.com/H/company360/o...nyId=560661639
    http://subscriber.com/H/company360/o...nyId=474267957
    http://subscriber.com/H/company360/o...nyId=474143273
    http://subscriber.com/H/company360/o...nyId=465651714
    http://subscriber.com/H/company360/o...nyId=470567660
    http://subscriber.com/H/company360/o...nyId=769933685
    http://subscriber.com/H/company360/o...nyId=565296456
    http://subscriber.com/H/company360/o...nyId=476723952
    http://subscriber.com/H/company360/o...nyId=464403221
    http://subscriber.com/H/company360/o...nyId=475376948
    http://subscriber.com/H/company360/o...nyId=479371254
    http://subscriber.com/H/company360/o...nyId=512009051
    http://subscriber.com/H/company360/o...nyId=460067813
    http://subscriber.com/H/company360/o...nyId=564593895
    http://subscriber.com/H/company360/o...nyId=473856664
    http://subscriber.com/H/company360/o...nyId=470036609
    http://subscriber.com/H/company360/o...nyId=472107606
    http://subscriber.com/H/company360/o...nyId=512737826
    http://subscriber.com/H/company360/o...nyId=464611644
    http://subscriber.com/H/company360/o...nyId=464053644
    http://subscriber.com/H/company360/o...nyId=477711865
    http://subscriber.com/H/company360/o...nyId=478382005
    http://subscriber.com/H/company360/o...nyId=464590798
    http://subscriber.com/H/company360/o...nyId=562942888
    http://subscriber.com/H/company360/o...nyId=460535612
    http://subscriber.com/H/company360/o...nyId=460572055
    http://subscriber.com/H/company360/o...nyId=465614407
    http://subscriber.com/H/company360/o...nyId=511137051
    http://subscriber.com/H/company360/o...nyId=564594463
    http://subscriber.com/H/company360/o...nyId=460029368
    http://subscriber.com/H/company360/o...nyId=474002016
    http://subscriber.com/H/company360/o...nyId=474418121
    http://subscriber.com/H/company360/o...nyId=461904968
    http://subscriber.com/H/company360/o...nyId=461045622
    http://subscriber.com/H/company360/o...nyId=565339553

  2. #2
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    On second thought is this possible?

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Yes, but why even bother with NotePad when you can save the text directly into a plain vanilla TXT file?

  4. #4
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Not sure what does plain vanilla TXT files mean..

    I need it in TXT file because I will import these notepad files data to another application..

    Not ure if that application can import this Vanilla TXT files.

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Plain Vanilla

    Yes, it can import them. Copying to NotePad to save is just introducing 2 additional steps.

    Save a Range as Text
    Last edited by cytop; 05-27-2016 at 02:43 AM.

  6. #6
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    HTML Code: 
    [/HTML]Thanks, This solves one part of my problem(which is copy/paste data in txt format).

    Can you help me modify macro to add this feature -
    I need to create macro where
    a)It should automatically copy paste 1-1500 rows and paste them in Notepad and save notepad as Notepad 1.
    b)Then it should copy paste values from 1501 to 3000 and paste them in Notepad and save notepad as Notepad 2.
    c) Then it should copy paste values from 3001 to 4500 and paste them in Notepad and save notepad as Notepad 3.
    d) and so on till the end of the Column1 values.

    Here
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    HTML Code: 
    [/HTML]Thanks, This solves one part of my problem(which is copy/paste data in txt format).

    Can you help me modify macro to add this feature -
    I need to create macro where
    a)It should automatically copy paste 1-1500 rows and paste them in Notepad and save notepad as Notepad 1.
    b)Then it should copy paste values from 1501 to 3000 and paste them in Notepad and save notepad as Notepad 2.
    c) Then it should copy paste values from 3001 to 4500 and paste them in Notepad and save notepad as Notepad 3.
    d) and so on till the end of the Column1 values.

    Here
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Can someone help me to find the solution for the problem

    Can you help me modify macro to add this feature -
    I need to create macro where
    a)It should automatically copy paste 1-1500 rows and paste them in Notepad and save notepad as Notepad 1.
    b)Then it should copy paste values from 1501 to 3000 and paste them in Notepad and save notepad as Notepad 2.
    c) Then it should copy paste values from 3001 to 4500 and paste them in Notepad and save notepad as Notepad 3.
    d) and so on till the end of the Column1 values.

  9. #9
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    The link I posted shows you exactly how to do it, complete with a detailed explanation; all you need to do is loop for 1500 rows or until you reach the end of the list - and that is probably the most basic of programming in VBA

  10. #10
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Hi Cytop,

    Thanks for the response, I dont now programming at all, thats why was seeking for help. I dont know how to modify the given code to abend it as per my requirements. Can you help me with that please?

  11. #11
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Need help on this problem. Kindly help experts

  12. #12
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Cross posted.

  13. #13
    Registered User
    Join Date
    04-14-2016
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    44

    Re: Macro-Launch Notepad from Excel and save data in notepad and save with naming conventi

    Following code solves my problem -

    Please Login or Register  to view this content.

+ 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] 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. [SOLVED] Export data to notepad, save and close
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-18-2014, 10:46 PM
  3. Using Send Keys to move data from Excel to Notepad and save as CSV
    By willmana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2013, 11:29 PM
  4. [SOLVED] Macro that Copy/paste a column to Notepad and Allows me to Save As in a specified folder
    By Nate87 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-16-2013, 05:12 PM
  5. Help me in Copy the Values from Excel to Notepad and Save the Same.
    By karthik_13689 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 05:55 AM
  6. Macro to Launch Notepad
    By Andrew.Trevayne in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2011, 02:27 AM
  7. [SOLVED] Create a macro to launch notepad while in Excel.
    By cheryljohnson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2005, 08:06 AM

Tags for this Thread

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