+ Reply to Thread
Page 2 of 2 FirstFirst 2
Results 201 to 204 of 204

Rearrange columns with additional columns in required order with code

  1. #201
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Rearrange columns with additional columns in required order with code


    Quote Originally Posted by RAJESH SHAH View Post
    I am still not ready to understand such professional code
    As I wrote it's a simplified version, so at beginner level,
    just using Excel basics - INDEX, IF & RIGHT worksheet functions - and only VBA basics
    so all is yet explained in both helps …

    My fastest way - but all hardcoded - may be slightly more 'professional' …


    Quote Originally Posted by RAJESH SHAH View Post
    If you are asking me to edit the code and create 5 more csv files and extract the data from the different source sheets then I think you are just imagining that I can do that.
    No I did not imagine that as :

    • this demonstration already exports all the 6 csv text files types from the five source data worksheets !

    • No need to edit the code as nothing is hardcoded : all must be defined in the settings worksheet CSV !


    Quote Originally Posted by RAJESH SHAH View Post
    which line of code is creating the b2c file in the folder of each state. There is no mention of the file name nor any mention of the state code folders. How did you get the headings in the csv file that is another surprise ?
    As just written above, the same codelines export all the csv text files types according to the settings from CSV worksheet.
    Aka the Open and Print # codelines.

    And for the settings : all is explicitly yet explained in the original post #111 …

  2. #202
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Rearrange columns with additional columns in required order with code

    Actually yes. Without the basic knowledge of coding, I am only capable of editing codes and recreating them as per my requirement with the help of comments.
    "There is nothing called problem, it's just absence of an idea to find*solution."
    ?I have not failed. I?ve just found 10,000 ways that won?t work.?
    ?Thomas Edison

  3. #203
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Rearrange columns with additional columns in required order with code


    As commented, described, explained, whatever, in posts #102, 107, 111, 118, 119, 158, 186 & 201
    no need to edit the code with my demonstration …

  4. #204
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Rearrange columns with additional columns in required order with code

    Thank you very much John Topley. You did it once again. I tested the sample data and it worked perfectly. When I added the module to the original data and using call in the code I was not able to get the result of HSN extract to hsn csv file. But after assigning your macro to a separate button and playing it in the end got me the correct expected results successfully.
    Thanks man.

+ Reply to Thread
Page 2 of 2 FirstFirst 2

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Code to delete selected columns and rearrange columns in order
    By RAJESH SHAH in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-14-2023, 09:10 AM
  2. Need macro code to rearrange columns and to delete unwanted columns
    By Giri.hb in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-16-2019, 03:00 AM
  3. Modify VBA code to include additional columns
    By jbolyard in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2018, 10:39 AM
  4. Replies: 3
    Last Post: 06-29-2016, 01:38 PM
  5. Additional Code to check for duplicates in multiple columns
    By Craigs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2014, 04:19 AM
  6. [SOLVED] VBA code to rearrange data into multiple columns
    By shinobi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2013, 06:33 AM
  7. How can I rearrange columns value in one fixed order?
    By sonupal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2013, 09:24 AM

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