+ Reply to Thread
Results 1 to 17 of 17

Resize Ranges ... How To ?

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Resize Ranges ... How To ?

    .
    I know I need to reduce the following down into something more readable and manageable. Also, Excel doesn't very much like the size
    of my macro because of it.

    How would this be edited using RESIZE ?

    Thank you !


    Please Login or Register  to view this content.
    Thanks for reading !

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Resize Ranges ... How To ?

    Maybe:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    Mumps

    Would you mind if I posted the workbook for you to review ?

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Resize Ranges ... How To ?

    I can't promise any solution, but I'll be happy to have a look.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    Thank you Mumps !

    Attached
    Attached Files Attached Files

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Resize Ranges ... How To ?

    Is the PopulatePMSheetFromQuery macro working for you as it is written? If it is working, I'm not sure what you want me to do. If it isn't working for you, how is it not working?

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    I receive an error message PROCEDURE TOO LARGE. It errors out at the end of the PopulatePMSheetFromQuery macro on END SUB.

    Nothing gets populated to the Senior PM sheet.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Resize Ranges ... How To ?

    From what I've read, PROCEDURE TOO LARGE means the macro is more than 64kb. I have to go out now. I will have a look at the macro tomorrow and get back to you.

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    Thank you. I'll be going out as well. Back in a few hours.

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Resize Ranges ... How To ?

    Hello Logit,

    You will see from the pattern in the Code below, how to shorten your Code with Resize. do the remaining rows of the Module, and delete the lines that are commented out.

    Please Login or Register  to view this content.
    HTH

    Kind regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    Hey Winon ..

    Thank you for looking at this.

    The first thing I realized after making some adjustments to the size of the macro, was I had it backwards ! DUH !

    Then I changed the code to what you have posted as 'commented out' ... but still no go.


    I've removed everything from the macro with the exception of the code lines you provided above. Regretfully it doesn't work.
    No errors ... nothing gets written to the Senior PM sheet.

    Looking online, there are plenty of sites that talk about the "ActiveCell.Row". I'm guessing that it the ticket but in what
    'combination' with the remainder of the line of code ?


    Plugging away here.....


  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    Two other attempts that did not work :

    Please Login or Register  to view this content.

  13. #13
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Resize Ranges ... How To ?

    1. You have declared a variable, Activecell, which you should not have done since Excel/VBA has a keyword/property ActiveCell.
    2. You declared it as a range variable but never set it so that it points to nothing....

    Please Login or Register  to view this content.
    no test for empty row?
    Ben Van Johnson

  14. #14
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Resize Ranges ... How To ?

    For the left column.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  15. #15
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Resize Ranges ... How To ?

    @ protonLeah and bakerman2,

    You guys seem to enjoy evoking my temper.

    Without my permission, you just jump in with excellent observations, and commendable solutions. Now let me warn you for the last time!
    You guys ROCK!

    Kudos to you!

    @ Logit,

    Glad you have your issue resolved. Unfortunately it had to be with the responses from two Gurus who I hold in great esteem.
    Thank you for the Rep+. Much appreciated!

    Regards.

  16. #16
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Resize Ranges ... How To ?

    Logit, glad to help and thanks for rep+.

    If you have any questions regarding right column, feel free to ask.

  17. #17
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Resize Ranges ... How To ?

    .
    bakerman2

    Thank you for the offer. I have you all on my list for "go to's " when I need help.

+ 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] resize
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2014, 02:41 PM
  2. Copy data in named ranges to a newer version of the same template to identical ranges
    By handstand in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2006, 10:51 AM
  3. [SOLVED] I could NOT resize the axis title but excel allows me to resize gr
    By Iwan Setiyono Ko in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-05-2006, 11:50 PM
  4. RESIZE PROPERTY: is it possible to resize "up" and "to the left"?
    By Myles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2006, 01:00 AM
  5. I could NOT resize the axis title but excel allows me to resize gr
    By Iwan Setiyono Ko in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-15-2006, 06:40 AM
  6. [SOLVED] Resize Named Ranges Help
    By Ray Batig in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2006, 08:35 AM
  7. Resize name box
    By Gilbert De Ceulaer in forum Excel General
    Replies: 2
    Last Post: 01-18-2005, 02:06 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