+ Reply to Thread
Results 1 to 6 of 6

Losing format information in For Loop iterations

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Dundee
    MS-Off Ver
    Excel 2010 64 Bit
    Posts
    15

    Losing format information in For Loop iterations

    Hi All,

    I now have my spreadsheet working as I want it to, apart from one last niggling annoyance. The code below works fine to send the data to my template but it only applies the formatting to the first 2 iterations and I can't figure out why!

    Anyone able to see the flaw?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Losing format information in For Loop iterations

    Nothing obvious jumps out at me. Is the IF condition definitely met beyond 2?

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Dundee
    MS-Off Ver
    Excel 2010 64 Bit
    Posts
    15

    Re: Losing format information in For Loop iterations

    Definitely working as it is passing the information to the template fine for each loop, just stops bothering to format it after loop 2

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Losing format information in For Loop iterations

    I think you'll have to post a workbook.

  5. #5
    Registered User
    Join Date
    08-17-2012
    Location
    Dundee
    MS-Off Ver
    Excel 2010 64 Bit
    Posts
    15

    Re: Losing format information in For Loop iterations

    I believe the term "numpty" could be applied to myself. Just realised that there is nothing wrong with the code, someone had applied cell formatting to the template

    Thanks though StephenR

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Losing format information in For Loop iterations

    Ah, hadn't thought of that. It could happen to anyone, honest.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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