+ Reply to Thread
Results 1 to 3 of 3

Mixing cell contents works with F8 not F5

  1. #1
    Registered User
    Join Date
    03-02-2007
    Posts
    26

    Mixing cell contents works with F8 not F5

    Hello everyone, and thank you in advance for your input.
    After burning up the past few days trying things, I'm reaching our for help
    Part of my program reads cells and any that have more than one entry, and it creates a new row for each possible combination.
    Then it deletes the original row.
    This works exactly as I would expect when I step through the program using F8.
    When the program runs, it doesn't mix the combinations and deletes rows randomly.
    I attached a sample of the file and code.

    Thank you again.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Mixing cell contents works with F8 not F5

    Why would you upload a text version of an excel file? Please upload an actual sample WB please.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Mixing cell contents works with F8 not F5

    at a first glance (and maybe I am missing something here) it looks like the calculation of last_row should occur before the do loop not within it however I don't have the time to build a spreadsheet to test that thought (another vote for the request from FDibbins)

    Cheers

    Jmac1947

    1. Please consider clicking on the * Add Reputation if you think this post has helped you
    2. Mark your thread as SOLVED when question is resolved

+ 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] Feeding in a function (mixing plain text and cell references) from VBA to a Cell
    By JamesAB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2012, 05:54 AM
  2. [SOLVED] mixing text and formulae in same cell
    By Govind in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 07:05 AM
  3. mixing text and formulae in same cell
    By Govind in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 06:05 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