+ Reply to Thread
Results 1 to 7 of 7

Code Adjustment split to csv

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Thumbs up Code Adjustment split to csv

    Hi Watersev,

    This is your sent code to me which perfectly worked only little amendment required.

    1. Hard coded the excel master.xlsm (path in the folder) Code do not browse to search.

    2. when it creates csv in the result folder ( It creates the name of csv like sheet1,sheet2,sheet3 and so no) i need the name of worksheet tab as a .csv file name suppose worksheet tab name is test then create csv in the result folder like test.csv.

    The code is below

    Please Login or Register  to view this content.
    Thanks
    farrukh
    Last edited by farrukh; 08-14-2011 at 11:08 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Code Adjustment split to csv

    hi, farrukh, are you sure the sheet names will be unique otherwise an error occur?
    Last edited by watersev; 08-14-2011 at 08:15 AM.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Code Adjustment split to csv

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Code Adjustment split to csv

    Dear Watersev,



    I have the worksheet names in the master.xlsm like guest1,guest2,guest3,administrator1 so on..

    I need that code do not search or browse the file directly hard coded the path= "D:\Myworks\Master.xlsm and create csv from master.xlsm on the path D:\results.

    Sorry if i cannot make you understand better...

    Thanks
    farrukh
    Last edited by farrukh; 08-14-2011 at 08:50 AM.

  5. #5
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Code Adjustment split to csv

    Hi Watersev,

    This code works for me but it is creating the .csv on path

    C:\Documents and Settings\Administrator\My Documents

    I want that the Csv file will create on the D:\results\

    Thanks your help will be highly appreciated as you always help me

    Thanks
    farrukh

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Code Adjustment split to csv

    change this line:

    Please Login or Register  to view this content.
    to this one:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Code Adjustment split to csv

    Hi watersev,

    Great it works for me,thank you so much for your kind efforts

    Regards,
    farrukh

+ Reply to Thread

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