+ Reply to Thread
Results 1 to 4 of 4

Help with the macro modification

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2003
    Posts
    22

    Help with the macro modification

    HI,

    We have a macro which is being used for converting the xls files to csv files., I need to change the output filenames of the generated .csv.. right now it is generating the filenames as tabname_timestamp for all the tabs present in the xls.

    But I am looking for the below naming convention..if my xls name is SEP012011_DollarU_load.xls which has tabs like Monthly , weekly, the macro should generate the files as

    SEP012011_DollarU_load.xls_Monthly
    SEP012011_DollarU_load.xls_weekly
    below is the piece of code which I tried to modify for the above outcome.., but i was not able to even compile the code

    Please Login or Register  to view this content.

    And below is the macro which we are using .Please tell me how to add the xls name in the tempname variable so that the macro will generate the file formats as mentioned above.

    Please Login or Register  to view this content.
    Best REgards
    Last edited by Nithya1987; 09-21-2011 at 08:45 PM.

  2. #2
    Registered User
    Join Date
    09-20-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Help with the macro modification

    Hi,

    I tried to get the xls_name_worksheet name as the script is generating a log file which has these details, but when I modify the tempname as below the filename is changing as required in the log file.., but the actual file is not changing.

    Please tell me where is the issue.
    Please Login or Register  to view this content.
    Best Regards,
    Nithya

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Help with the macro modification

    Hi,

    Can any one pls give me a hint or tell me is there a function, if we use it it will give my the xls name for getting the desired file out put format.

    Regards,
    Nithya

  4. #4
    Registered User
    Join Date
    09-20-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Help with the macro modification

    Hi ,

    Figured out the problem and fixed.

    Thanks for all your support.

    Regards,
    Nithya

+ 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