+ Reply to Thread
Results 1 to 4 of 4

Repeat or Loop VBA Statements

  1. #1
    Registered User
    Join Date
    08-02-2014
    Location
    michigan
    MS-Off Ver
    2010
    Posts
    2

    Repeat or Loop VBA Statements

    Hi,

    I am having trouble with trying to repeat or loop the below statements. I am trying to start with applying text in cell "B2" which will hide column "A" on a separate sheet. I want to know if it is possible to repeat the same statement but loop the statement until cell "SL2" and column "SK"?

    [If Range("B2").Text = "" Then
    Sheets("43mm").Columns("A").EntireColumn.Hidden = True
    Else
    Sheets("43mm").Columns("A").EntireColumn.Hidden = False
    End If]

    Thank you

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Repeat or Loop VBA Statements

    Hi, zede35,

    you would need to add code-tags to your procedure according to Forum Rule #3 for us to answer.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-02-2014
    Location
    michigan
    MS-Off Ver
    2010
    Posts
    2

    Re: Repeat or Loop VBA Statements

    Sorry and I have reposted my code if you could give me some help that would be great. Again here is my question, "I am having trouble with trying to repeat or loop the below statements. I am trying to start with applying text in cell "B2" which will hide column "A" on a separate sheet. I want to know if it is possible to repeat the same statement but loop the statement until cell "SL2" and column "SK"?".

    Please Login or Register  to view this content.
    Thank you

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Repeat or Loop VBA Statements

    Hi, zede35,

    if you could add tags to the opening post as well (that was what I asked for)...

    Try
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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] Loop or Next Repeat
    By namluke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 07:46 AM
  2. VBA Loop, Find, Copy, Repeat Loop
    By sparx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2013, 06:25 AM
  3. [SOLVED] Repeat actions in a Loop
    By abduljaleel.mca in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 11:03 AM
  4. Loop/Repeat macro..
    By artfulrodger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2010, 07:50 AM
  5. Loop/Repeat smallscroll
    By criswilk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2007, 02:00 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