+ Reply to Thread
Results 1 to 8 of 8

VBA Issue - Multiplying an entire row by number and returning it to another worksheet

  1. #1
    Registered User
    Join Date
    07-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    VBA Issue - Multiplying an entire row by number and returning it to another worksheet

    Hi,

    I have a workbook that contains 3 sheets, 'Model Overview Sheet' , 'copier' and 'Return Row'

    In the worksheet 'copier' it has 3 columns. SSR Reference which is a reference to the value in column A in the 'Model Overview Sheet'

    In column B of 'copier' it has the row reference that the ssr reference number corresponds to in 'model overview sheet'

    In column C of 'copier' there is the number that I would like each row in the 'model overview sheet' multiplied by.

    I have macro code that returns rows from the 'model overview sheet' based on the ssr references entered into 'copier'.

    My only issue is that I would like each row to be multiplied by the number given in column C of 'copier', can someone help me with that?

    The spreadsheet is attached

    Here is my code for the macro -
    Please Login or Register  to view this content.

    Any help would be appreciated.
    Attached Files Attached Files
    Last edited by AC1982; 10-06-2009 at 10:43 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    Please change the QUOTE tags to CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    I have now changed it.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    Thank you -- looking at your workbook now.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    When you say 'mutiplied by', do you multiply each value in the row, or copy multiple times?

  6. #6
    Registered User
    Join Date
    07-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    I mean multiply each value in the row

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    OK, try this (I confess I don't understand your code; suggest you step through it).
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: VBA Issue - Multiplying an entire row by number and returning it to another works

    Thanks,

    I get an error at this line -

    wksMOS.Rows(wksCop.Cells(iRow, 2).Value).Copy _
    Destination:=wksCop.Rows(lRow - 1, 1)

    and so it doesn't work for 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