+ Reply to Thread
Results 1 to 7 of 7

Create a Macro from predefined text

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    15

    Create a Macro from predefined text

    Hello people.

    LV Final.xlsx

    So, this is the file I have. If you open the "Macro" sheet, that's an example of the data I'll need to transform. So, it has to look like this:

    Please Login or Register  to view this content.
    So, step-by -step:

    Take that title above (cell B2) and put it between that code;

    Get a position in the left, get the country in the same row and put it in the [flag][/flag] code, take the name in the row between the , then input the arrow and the number of points: do that to all the positions (the number of them can vary from 3 to more than 30), same with "Líder";

    Then we have the teams after the "Pontuam:", these are the teams of the riders, which are the ones who get points. So, name of the team and points in the same row. I'd like to see the teams ordered by points (as you can see, in the code Orica appears before Fly V because it has more points, although in the file Fly V is in the first row with positions: the second rider having more points than the first is not an error!). If the same team appears twice, I would also like to see a sum like the one Fly V has in the code.

    Hope I was completely clear, thank you in advance.
    Last edited by Helders; 12-18-2013 at 07:46 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create a Macro from predefined text

    not valid attachment
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    07-30-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Create a Macro from predefined text

    Quote Originally Posted by patel45 View Post
    not valid attachment
    Post edited with correct file, I'm sorry.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create a Macro from predefined text

    What kind of ouput do you want ? a text file ? a new sheet ?

  5. #5
    Registered User
    Join Date
    07-30-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Create a Macro from predefined text

    Appearing an userform with the text and then I'd just need to copy it, it would be great.

  6. #6
    Registered User
    Join Date
    07-30-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Create a Macro from predefined text

    Giving it a bump

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Create a Macro from predefined text

    Quote Originally Posted by Helders View Post
    If the same team appears twice, I would also like to see a sum like the one Fly V has in the code.
    i'm sorry but it's a problem for me, maybe you can arrange this code

    Please Login or Register  to view this content.
    Last edited by patel45; 12-19-2013 at 02:48 AM.

+ 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] Macro to convert predefined text only to lower case
    By ghoneim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:23 AM
  2. Replies: 1
    Last Post: 05-03-2012, 10:50 AM
  3. Text to columns macro (fixed width) w/ predefined format on result
    By dusit_t in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2009, 11:21 AM
  4. Create combobox in VBA from predefined range
    By plutopsyche in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2009, 10:20 PM
  5. Replies: 3
    Last Post: 10-27-2008, 08:32 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