+ Reply to Thread
Results 1 to 10 of 10

I need to extend my range from my limited arrays.

  1. #1
    Registered User
    Join Date
    04-11-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 365
    Posts
    12

    Question I need to extend my range from my limited arrays.

    Hi Experts,

    I have a working code having its limitations. I have a range "A" column [{9;11;13;15;17;19;21;23;25;27}]). However, I wanted to extend this range until there are available values on the cell selected. If the value has extended until 100, I do not want to input it manually, I am seeking your expertise to have a range or steps that can range to 9-until value available, and 10-until value available for the "C" Column.

    Let me know if you need other information. I am not an expert as I was able to develop this code with the help of our friends here. Thank you.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: I need to extend my range from my limited arrays.

    Try this...
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: I need to extend my range from my limited arrays.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-11-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 365
    Posts
    12

    Re: I need to extend my range from my limited arrays.

    Thank you dangelor, this works, I understand some of the code. I didn't know the ubound code. I want to request some revision. For this code, can we paste the below code on the end of the rows of the first codes + 1 row offset?
    For this example, it ends to Row 45; I want to start copying it to row 47 column D.
    Sheets("psgc").Range("D16").Resize(rng.Columns.Count) = Application.Transpose(rng)


    Please Login or Register  to view this content.
    Last edited by jengjava; 05-29-2020 at 04:44 AM.

  5. #5
    Registered User
    Join Date
    04-11-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 365
    Posts
    12

    Re: I need to extend my range from my limited arrays.

    Hi Jindon, thank you for your help. I have seen that you are an expert; you also simplify my code as some of it is new to me. I have an additional request, is it possible to revise below code? I want to paste this code instead of range("D16"), I want it to be dynamic, for example, this first part of code end to column A row 45. I want to start copying it to row 47 column D (1-row offset).

    Sheets("psgc").Range("D16").Resize(rng.Columns.Count) = Application.Transpose(rng)

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: I need to extend my range from my limited arrays.

    Perhaps
    Please Login or Register  to view this content.
    Edit:
    Missed a dot.
    Last edited by jindon; 05-29-2020 at 04:51 AM.

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: I need to extend my range from my limited arrays.

    Possibly with...
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-11-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 365
    Posts
    12

    Re: I need to extend my range from my limited arrays.

    Thank you jindon for the help. Adding reputation on you.

  9. #9
    Registered User
    Join Date
    04-11-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 365
    Posts
    12

    Re: I need to extend my range from my limited arrays.

    Thank you dangelor for the help. Adding reputation now.

  10. #10
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: I need to extend my range from my limited arrays.

    You're welcome and thank you!

+ 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. Extend range. someone can help?
    By Henk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2015, 12:06 PM
  2. [SOLVED] Looking max+if with in a limited range
    By SwissExcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-10-2015, 03:45 PM
  3. How to extend Arrays
    By port in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-22-2014, 02:07 AM
  4. [SOLVED] Painting Range - extend the range on the top part
    By Shrikant in forum Excel General
    Replies: 4
    Last Post: 09-01-2005, 07:05 AM
  5. Limited data range
    By SEIMurf in forum Excel General
    Replies: 1
    Last Post: 05-27-2005, 12:05 PM
  6. Extend range to sum
    By Ivor Williams in forum Excel General
    Replies: 2
    Last Post: 03-19-2005, 05:06 PM
  7. Range limited by a wildcard
    By Jeff in forum Excel General
    Replies: 6
    Last Post: 03-13-2005, 01:06 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