+ Reply to Thread
Results 1 to 5 of 5

change the range on autofill to use defined variables

  1. #1
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    change the range on autofill to use defined variables

    If I have this code:
    Please Login or Register  to view this content.

    Why cant I change the range on:
    Please Login or Register  to view this content.
    To be using the variable from the search result? Like:
    Please Login or Register  to view this content.
    B/c this doesnt work.
    Last edited by clemsoncooz; 02-02-2012 at 10:43 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: change the range on autofill to use defined variables

    H117 is an address not a range value so you need
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Re: change the range on autofill to use defined variables

    Perfect! Yep. That fixed it! Thank you!

    One part of the code that I didnt show was something as simple as:
    Please Login or Register  to view this content.
    Which is just define a variable called "Design_rowsCount" as the value in a certain cell on sheet9. This value will change but its also a number (generally between 1 & 10).

    So then - how do I change the ":H122" to be "Design_rowsCount" away from search_result.offset(2,0).address?

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: change the range on autofill to use defined variables

    Please Login or Register  to view this content.
    for example. You may need to add 1 to Design_rowsCount depending on what you mean by "away from".
    Good luck.

  5. #5
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Re: change the range on autofill to use defined variables

    Thanks to the both of you. You got it!

    I very much appreciate you looking at that with me!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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