+ Reply to Thread
Results 1 to 7 of 7

Macro doesn't fully work. Need help with rows

  1. #1
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Question Macro doesn't fully work. Need help with rows

    I have a macro that converts a set of data to a different sheet, then shuffles the data around. Once shuffled, it copies it to a new file. My only issue is that... for some reason, it only copies the first 10 rows of cells for one of the columns only. Everything else it does fine. Can you guys see where I'm going wrong on my macro?

    Please Login or Register  to view this content.
    Note: The rows of data I will have (not because of the macro) will alway be different. Sometimes i'll have 8 structures, or 37, or 22, etc... but due to the macro, the names of only 10 will appear.
    Attached Files Attached Files

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro doesn't fully work. Need help with rows

    plug this in and see if it works....I put 3 comments in where I added/changed stuff....

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Macro doesn't fully work. Need help with rows

    Thanks Ernest. I dint know why that works but it does. Funny thing is that I recorded that macro instead of vba, so I dint know why it would have failed me then.

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro doesn't fully work. Need help with rows

    The one statement RANGE("G11").select literally put the cursor there and that's why you only got 10 rows....recording a macro is a GREAT way to get things started...I still do it sometimes...but it doesn't always make it dynamic...if that make sense.....

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro doesn't fully work. Need help with rows

    If this has been completed to your satisfaction, please set the thread to Solved...If you feel I deserve an increase in my reputation, feel free to click on the star in the lower left of the thread. Remember, someday when you help somebody they may add to your rep points, and it could be me...just a thought...have a great day

  6. #6
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Macro doesn't fully work. Need help with rows

    Quote Originally Posted by judgeh59 View Post
    The one statement RANGE("G11").select literally put the cursor there and that's why you only got 10 rows....recording a macro is a GREAT way to get things started...I still do it sometimes...but it doesn't always make it dynamic...if that make sense.....
    do you mean H11? I checked the code I copied on my first post of the thread and I didn't find anything for "G11".

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro doesn't fully work. Need help with rows

    my bad.....yes, H11.....I was doing that from memory and aparently I hit the Erase(Memory) function....thanks for the rep point....have a great day

+ 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] Macro work in personal workbook, doesn't work in other workbooks
    By Centexcel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2013, 11:47 AM
  2. [SOLVED] Macro Doesn't Work Through Button, Does Work Through Developer ->Macros Option
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-27-2013, 11:55 AM
  3. Conditional format in macro, does not fully work
    By SET_student in forum Excel General
    Replies: 4
    Last Post: 02-10-2011, 06:53 AM
  4. Sorting Rows Doesn't Work, Please Help
    By binar in forum Excel General
    Replies: 30
    Last Post: 08-09-2006, 04:39 PM
  5. [SOLVED] Doesn't work as it SHOULD .. Rows.Hidden /with SpecialCells
    By Gunnar Johansson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2006, 06:25 AM

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