+ Reply to Thread
Results 1 to 5 of 5

How to make this line of code select 2 less rows

  1. #1
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    How to make this line of code select 2 less rows

    Hi,

    I need the following line of code to do as below but for 2 less rows.
    I have tried using a resize property to do this but it did not work and I am uncertain why.

    Please help.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,672

    Re: How to make this line of code select 2 less rows

    Try:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,672

    Re: How to make this line of code select 2 less rows

    Or, bit neater

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Re: How to make this line of code select 2 less rows

    That's perfect. Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,672

    Re: How to make this line of code select 2 less rows

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Modify the code to make it copy more than one line....
    By raghuprabhu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2017, 03:11 AM
  2. [SOLVED] How to make a long code stay in 1 line
    By macnabong in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2014, 04:04 AM
  3. Issue to select a line in a ListBox control with VBA code
    By Paulo75 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-05-2013, 04:46 PM
  4. [SOLVED] how to make a long line of VBA code shorter...
    By minifreak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 12:02 PM
  5. Code to prevent user to Select COLUMNS but allow to select ROWS
    By tengrosita in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2011, 03:46 AM
  6. Find Last Line Code: Let's Make This Better
    By coctosten in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2005, 08:55 PM

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