Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm having issues with the following code, after the value is pasted
into the second workbook I'd like to multiply the value by a constant, can someone please help. Sub loop7() Dim i As Integer Workbooks("Part List.xls").Activate Range("E2").Select intRowCount = Range("E2").CurrentRegion.Rows.Count - 1 For i = 1 To intRowCount ActiveCell.Copy Const diameter = 25.4 Const metric = 1000 Workbooks("Test1.xls").Sheets("Sheet1").Range("B1" ).PasteSpecial Paste:=xlValues * diameter ActiveCell.Offset(0, 2).Copy Workbooks("Test1.xls").Sheets("Sheet1").Range("B2" ).PasteSpecial Paste:=xlValues * metric Next i End sub Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HOW DO I MULTIPLY MANY CELLS BY A CONSTANT CELL ? | Excel Discussion (Misc queries) | |||
Multiply a co;omn by a constant | Excel Worksheet Functions | |||
is it possible to multiply whole of excel table by some constant | Excel Discussion (Misc queries) | |||
Multiply by a constant | Excel Discussion (Misc queries) | |||
Multiply a Range by a Constant | Excel Programming |