+ Reply to Thread
Results 1 to 3 of 3

Macro to Sort Table Then Paste to New CSV Worksheet File

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Question Macro to Sort Table Then Paste to New CSV Worksheet File

    I need a macro that can copy and paste and array that will change each time I run it. See attached. Basically, the macro will copy the acct column A8:Down and reference (column F7:Down) for amount and refence number (F1). However, the amt need to be greater than zero. It will then past into a new tab (Result) B1:D1 and put in "A" next to in A2. It will loop through the Data tab until it's done. Once it finishes looping through I need a msg box to enter the username. But the username when entered needs a # infront of it then what the user will enter. Lastly, I need to save it as an CSV file. See attached data and result for a better idea of what needs to occur.


    The result tab will have A1 username then start the looping copy and paste macro in A2. The logic will be "A",a cct, amt, refernce number.


    Thank you so much for your help!!!!
    Attached Files Attached Files
    Last edited by Cutter; 08-28-2012 at 08:12 PM. Reason: Changed title

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,963

    Re: Macro Cut and Paste Madness Help

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.



    -----------------------------
    This is a pretty big request in one chunk. I'm sure you'll get better response if you break down your question into several parts, so that they can be tackled one after the other.

    Also, we're happy to help you with your effort, but nobody here will be keen on developing a solution from scratch. This forum is about helping people learn how to use Excel, not a free development service.

    Have you started any work on this project yet?
    How far did you get?
    Where are you stuck?

    We can help you develop your own code, but if you want someone to code this for you all the way, you should try and find a commercial developer.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Macro to Sort Table Then Paste to New CSV Worksheet File

    I cropped a macro that I already have. The macro creates a table under my data see attached. I need to sort this table by "Ticket" and place an "A" one cell next the "account". Then, I need to Select the table and paste it into a new worksheet starting at A2. Save the new worksheet as a csv file. Is this possible? I hope this isn't too much at once. Any help would be great.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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