+ Reply to Thread
Results 1 to 4 of 4

Increase range size with value from cell

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Increase range size with value from cell

    Hi,

    I am using the following to find the range I need

    Please Login or Register  to view this content.
    How do I modify it to use the value from K17 to determine how many rows to select, instead of Range(Selection, Selection.End(xlDown)).Select

    Thanks
    Kevin

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Increase range size with value from cell

    Variant = range("k17:k"& [k17].end(xldown).row).value

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Increase range size with value from cell

    Administrative Note:

    @Ikboy

    You need to include code tags around your code.

    Please take a moment to add the tags. 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, and it also maintains VBA formatting.

    Click on Edit to open your post, then 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
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: Increase range size with value from cell

    Thank you, works great with a slight change for my range
    Please Login or Register  to view this content.

+ 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. Reliable way to increase size of range
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2016, 08:37 AM
  2. Replies: 1
    Last Post: 11-05-2015, 03:09 PM
  3. Custom Function now accesses a cell due to worksheet size increase in 2010 - How to fix?
    By Culleoka Al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2013, 03:04 PM
  4. increase size of text in data validation cell
    By jcavigli in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2008, 01:22 PM
  5. How do I increase the font size in a cell validation list?
    By Brad Phelps in forum Excel General
    Replies: 2
    Last Post: 08-09-2006, 08:04 PM
  6. can i increase the cell size in Excel?
    By Bmorrison in forum Excel General
    Replies: 2
    Last Post: 04-27-2006, 02:25 PM
  7. [SOLVED] How do I increase the text size of an Excel cell?
    By Mike_Humphrey in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-13-2006, 07:30 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