+ Reply to Thread
Results 1 to 8 of 8

The results are ruining my table/set of data/borders

  1. #1
    Registered User
    Join Date
    11-15-2019
    Location
    England
    MS-Off Ver
    Professional Plus 2019
    Posts
    18

    The results are ruining my table/set of data/borders

    Hi VBA/Excel/IPhreeqcExperts,

    I'm struggling to make this VBA script to work:
    Please Login or Register  to view this content.
    I'm sorry I can't upload the Excel file as it is way too large for it to be posted on here. I really want to get it fixed, but I don't know how to. The results/data keeps overlapping the next set of data/results below, ruining the table/set of data/borders. Many thanks.
    Last edited by djb14128; 11-18-2019 at 02:48 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,086

    Re: The results are ruining my table/set of data/borders

    Please make a copy of the workbook and strip out as much as you can, leaving one small enough to post that illustrates the problem.

    You also need to explain CLEARLY what you think is wrong and how you want it to look - the images are not clear enough. We are going to need a sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-15-2019
    Location
    England
    MS-Off Ver
    Professional Plus 2019
    Posts
    18

    Re: The results are ruining my table/set of data/borders

    Here is as far as I can go with it. I was able to run Iphreeqc, I think the VBA code might be wrong. I'm not entirely sure because I've checked plenty of times already. Please ask me more questions, I'll answer them as much as I can. Many thanks.

  4. #4
    Registered User
    Join Date
    11-15-2019
    Location
    England
    MS-Off Ver
    Professional Plus 2019
    Posts
    18

    Re: The results are ruining my table/set of data/borders

    I think there is a problem with the For i = n To n+20 part of the VBA code. When I try to use For i = n To n it works perfectly fine. Only when I add the +20 does it fail. But I need to add that to make sure that I carry out the calculation again for the next set of data below.

  5. #5
    Registered User
    Join Date
    11-15-2019
    Location
    England
    MS-Off Ver
    Professional Plus 2019
    Posts
    18

    Re: The results are ruining my table/set of data/borders

    Bump............

  6. #6
    Registered User
    Join Date
    11-15-2019
    Location
    England
    MS-Off Ver
    Professional Plus 2019
    Posts
    18

    Re: The results are ruining my table/set of data/borders

    Can anyone help me? Many thanks.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,086

    Re: The results are ruining my table/set of data/borders

    Administrative Note:

    We don't expect you to bump threads sooner than 24 hours after your last post or more than once a day - you have now bumped it twice in the space of half a day. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

  8. #8
    Registered User
    Join Date
    11-06-2012
    Location
    Texas
    MS-Off Ver
    O365
    Posts
    27

    Re: The results are ruining my table/set of data/borders

    1) You do not have a Next for the "n" value for loop.

    2) Every time "i" increments, you are moving down 1 row. The first loop copies rows 63-69 down to 83-89. The second loop through "i" copies 64-70 down to 84-90...and so on. The format for Cells is (Row, Column). From the pictures, it looks like you want to increment the column, not the row.

+ 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] Put Borders Every 2 Rows Base on Filtered Results
    By allansy8 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2014, 04:06 PM
  2. Replies: 0
    Last Post: 09-05-2012, 06:12 PM
  3. Replies: 3
    Last Post: 02-20-2012, 05:09 PM
  4. Replies: 2
    Last Post: 02-03-2012, 12:13 PM
  5. Replies: 2
    Last Post: 08-29-2011, 12:29 PM
  6. Prevent Copy/paste ruining data validation in shared workbook
    By owlie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2009, 12:28 AM
  7. [SOLVED] Dynamic Table Should Always Maintain Borders When Data Is Updated
    By Dynamic Table Should Maintain Borders in forum Excel General
    Replies: 0
    Last Post: 09-09-2005, 05:05 PM

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