+ Reply to Thread
Results 1 to 2 of 2

Excel vba - Closing part of code in a loop

  1. #1
    Registered User
    Join Date
    02-23-2022
    Location
    Warszawa
    MS-Off Ver
    16
    Posts
    15

    Excel vba - Closing part of code in a loop

    Hello guys,

    I have this code (below) and I want to close it in a loop. Please look at my code in pastebin

    Excel takes data from column (10,2) line 4 and 5 and continues to process it, no matter...Next gets from column 12.2, 13.2, 14.2 etc. etc.

    I want to do so so that I do not have to assign cell numbers rigidly, but that it does so until it encounters a blank line...

    could you help with it?




    https://pastebin.com/PW7ZTR5D

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel vba - Closing part of code in a loop

    Please do not link to untrusted third-party web sites for content. Paste your code directly into your post here.

    When pasting code, use code tags. There are two ways to add code tags. One is to select the code part of the text so it is highlighted, then press the "#" button in the edit controls. The other is to simply type in the tags:

    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]


    Why use code tags? Code tags:

    1. Are required by rules (see rule #2)
    2. Preserve spacing used to show code structure (otherwise leading spaces and repeated spaces are removed)
    3. Add scroll bars to navigate code with long lines or a lot of lines
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. clean method for closing excel file without leaving a shell or closing other excel files
    By QuantumSquirrel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2020, 08:20 AM
  2. Asks for password for protected VBA code when closing Excel
    By SpringLily in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-28-2016, 12:18 PM
  3. Replies: 2
    Last Post: 03-09-2013, 04:30 AM
  4. [SOLVED] Code preventing Excel from closing down
    By arnavbh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2012, 10:51 AM
  5. Code for closing excel
    By heliskier89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2009, 02:05 PM
  6. Macro Code for closing excel...
    By Bonbon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2006, 07:57 AM
  7. Problems closing Excel correctly by code
    By Filips Benoit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2005, 09:05 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