Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would like to create a macro which will insert a function which
incorporates different cells. For example, =($A$3 * B3) where the B3 will become B4 in the next cell below. Is this possible? Thanks, Daniel |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Daniel,
Try this Sub mariner() Range("B3").Formula = "=$A$3*B3" Range("B3").AutoFill Destination:=Range("B3:B50") End Sub Mike "Daniel" wrote: I would like to create a macro which will insert a function which incorporates different cells. For example, =($A$3 * B3) where the B3 will become B4 in the next cell below. Is this possible? Thanks, Daniel |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks!
I will try it out. "Mike H" wrote: Daniel, Try this Sub mariner() Range("B3").Formula = "=$A$3*B3" Range("B3").AutoFill Destination:=Range("B3:B50") End Sub Mike "Daniel" wrote: I would like to create a macro which will insert a function which incorporates different cells. For example, =($A$3 * B3) where the B3 will become B4 in the next cell below. Is this possible? Thanks, Daniel |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Daniel
Maybe this will help you: Sub InsertFunction() For r = 3 To 10 Cells(r, "C").Formula = "=($A$3 * B" & r & ")" Next End Sub Regards, Per "Daniel" skrev i meddelelsen ... I would like to create a macro which will insert a function which incorporates different cells. For example, =($A$3 * B3) where the B3 will become B4 in the next cell below. Is this possible? Thanks, Daniel |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub autofilformulas()
For i = 1 To 3 Cells(i, "H").Formula = "=$b$3*h" & i Next i End Sub or Sub autofilformulas() For i = 1 To 3 'Cells(i, "H").Formula = "=$b$3*h" & i Cells(i, "H").Value = Range("b3") * Range(h" & i) Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Daniel" wrote in message ... I would like to create a macro which will insert a function which incorporates different cells. For example, =($A$3 * B3) where the B3 will become B4 in the next cell below. Is this possible? Thanks, Daniel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I insert formulas into my macros? | Excel Discussion (Misc queries) | |||
using formulas in macros | Excel Discussion (Misc queries) | |||
formulas vs macros | Excel Discussion (Misc queries) | |||
Macros/Formulas | Excel Worksheet Functions | |||
Help with populating cells using formulas or macros | Excel Discussion (Misc queries) |