+ Reply to Thread
Results 1 to 4 of 4

trying to copy quantities without using copy paste? "subscript out of range"

  1. #1
    Registered User
    Join Date
    02-05-2014
    Location
    sydney
    MS-Off Ver
    Excel 2007
    Posts
    5

    trying to copy quantities without using copy paste? "subscript out of range"

    gday,
    I have posted this problem a few days ago and marked it as solved but when i tried to use the process on another emailed list it came up with "subscript out of range".
    I have attached the new email that is in a bit of different layout. I beleive this to be the reason. I have attached original also to see the difference in layout. Ill also attach the program that alansidman wrote/posted for me .
    The program worked on the original, but wont seem to work on others.
    Is this problem because of the way the second list is written or is there something i have done wrong?
    The program duplicates the labels and copies them in a list in multiples of quantities
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2509 Win 11
    Posts
    25,019

    Re: trying to copy quantities without using copy paste? "subscript out of range"

    the code that I wrote for you was specific to the layout of the spreadsheet. VBA code that was expressly written for one spreadsheet layout/design cannot be expected to perform the same on a radically different layout. You have two options.
    1. Change the layout of the new list to look like the old list
    2. Write new code specifically for the new layout.

    I would urge your providers of data to submit the information in a standardized format so you don't have to keep rewriting code.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-05-2014
    Location
    sydney
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: trying to copy quantities without using copy paste? "subscript out of range"

    thanks for the replies. i am going to try learn to write codes. im beginning with youtube tutorials but am VERY novice with computers. any suggestions or just keep at it.
    thanks again fella

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2509 Win 11
    Posts
    25,019

    Re: trying to copy quantities without using copy paste? "subscript out of range"

    I would pick up a good VBA book. Look in the Tips Subforum here for some guidelines.

+ 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] Copy multiple rows that contain a certain "name" in column "A" then paste it into new work
    By rschlot2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2013, 02:25 PM
  2. [SOLVED] "copy paste" using "=" but its only pulling the first value of the selection?
    By bauerbach in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2012, 02:59 PM
  3. [SOLVED] Loop to check for "yes" then copy the IDs with "yes" and paste to other workbook
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 12:41 PM
  4. Error msgs: "Object varible or with block variable not set"; "subscript out of range"
    By menyanthe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-26-2009, 04:58 PM
  5. [SOLVED] "Subscript out of range" error for: Workbooks("Test1.xls").Save
    By Just12341234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2005, 11:05 AM

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