+ Reply to Thread
Results 1 to 5 of 5

Format table with variable number of entries

  1. #1
    Registered User
    Join Date
    05-16-2016
    Location
    Portugal
    MS-Off Ver
    2003/2010
    Posts
    2

    Question Format table with variable number of entries

    also in http://www.mrexcel.com/forum/excel-q...ml#post4522474


    Hi everyone,

    I'm trying to get a file formatted automatically. This file is extracted from another program every week or so.
    In the image (couldn't upload a xlm file for some reason), you can see an example of what I want to achieve. At the top, you see how the data is initially formated, and below how I want it to be.
    I've created a macro but the problem is that the macro only works for files with the same number of entries. This table as a variable number of entries: 1 week it has 10 rows, the other 15, the next 8...you get the idea
    How can I format the file for a variable number of entries?
    vba.png

    Thank you,
    ccarvalho
    Last edited by ccarvalho; 05-16-2016 at 04:27 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Format table with variable number of entries

    I can't open your PNG file.

    But why not make a range that always covered your data (e.g. 100 rows).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Format table with variable number of entries

    Please read the forumrules, especialy the ones about crossposting.

    http://www.mrexcel.com/forum/excel-q...r-entries.html

  4. #4
    Registered User
    Join Date
    05-16-2016
    Location
    Portugal
    MS-Off Ver
    2003/2010
    Posts
    2

    Re: Format table with variable number of entries

    oeldere, I don't know why the image isn't working. The file attachement wasn't working either. Maybe there's a problem with the upload feature.
    Anyway, how do I do what you suggest in a macro? I'm new at this, so I'm not sure how to implement that idea.

    Thanks
    ccarvalho

    PS. Sorry about the crossposting. I added the link to the other forum, in the original post.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Format table with variable number of entries

    I've created a macro but the problem is that the macro only works for files with the same number of entries.
    then show the forummembers the code.

    please post the code in tags # (according to the forumrules).

+ 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. Create table based on number of entries
    By anagouveia in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2015, 09:00 AM
  2. Replies: 2
    Last Post: 11-09-2015, 04:52 PM
  3. [SOLVED] Assign different named ranges based on variable number of entries
    By BrotherNeptune in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-17-2015, 10:15 AM
  4. Variable Number Format
    By rbirch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2015, 10:59 AM
  5. [SOLVED] Sorting rows of data based off a single column for a variable number of entries.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 12:31 PM
  6. Replies: 3
    Last Post: 01-12-2010, 06:49 AM
  7. Adding the number of table entries by type
    By Sav_C in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2006, 03:15 AM

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