+ Reply to Thread
Results 1 to 6 of 6

Highlight row, then print. Continue this until blank

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Highlight row, then print. Continue this until blank

    Hello, I am new, so please bear with me. In addition, my knowledge of VBA is very beginner level. Thank you in advance.

    The macro below does what I want, which is to highlight one row, then print, unhighlight go to the next line. However, what I can not figure is how to make this automatic no matter how many rows I have. Sometimes I can have only one row, other times It can be forty.

    Please Login or Register  to view this content.
    Last edited by ShikaLH; 12-23-2014 at 05:22 PM.

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

    Re: Highlight row, then print. Continue this until blank

    Hi, ShikaLHHi,

    please have a look at Forum Rule#3 to understand why you are asked to apply code-tags to your procedure.

    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
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Highlight row, then print. Continue this until blank

    Please apply Code Tags.




    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

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

    Re: Highlight row, then print. Continue this until blank

    Hi, mehmetcik,

    please refresh youzr browser to see if any requests are already published which still need to be followed before hitting submit.

    Thanks.



    @ShikaLHHi,
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    12-03-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Highlight row, then print. Continue this until blank

    Hi Holger, I added the code. Please let know if this okay now. I didn't realize it was the #. Thank you.
    Last edited by ShikaLH; 12-23-2014 at 05:26 PM.

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

    Re: Highlight row, then print. Continue this until blank

    Hi, ShikaLH,

    thanks for adding the tags.

    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] Setting up if cell is blank don't continue... and show a message.
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-16-2012, 10:04 AM
  2. Continue looking in a table if 1st matched cell is blank
    By patchulee in forum Excel General
    Replies: 5
    Last Post: 07-06-2011, 10:01 AM
  3. Continue looking in a table if the cell is blank
    By patchulee in forum Excel General
    Replies: 0
    Last Post: 06-17-2011, 09:57 AM
  4. Code error, highlight error, continue to RUN
    By JohnSeito in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-07-2008, 01:29 AM
  5. Replies: 4
    Last Post: 12-11-2007, 10:46 PM

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