Results 1 to 8 of 8

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

Threaded View

  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 -
    Sub Copy_SSR()
    
        Dim a As Integer
        
        Application.ScreenUpdating = False
    
        Let a = 2
        Let lrow = Sheets("Return Row").Range("c65536").End(xlUp).Row
       
        
       Do While Sheets("Copier").Cells(a, 72).Value <> ""
       
       Sheets("Return Row").Select
       Rows(lrow - 1).Select
       Selection.Insert shift:=xlDown
       
        Sheets("Model Overview Sheet").Rows(Sheets("Copier").Cells(a, 2).Value).Copy Destination:=Sheets("Return Row").Cells(lrow - 1, 1)
       
       Let lrow = lrow + 1
       Let a = a + 1
       
       Loop
       
       Application.ScreenUpdating = False
    
    End Sub

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

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