Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am desperately hoping someone can help me with writing a macro. Just to simplify, lets say that I have the formula =rand() in cell A1. Lets say I want to copy and past the value into cell B1. I want to recalculate and repeat this process and paste moving to B2, then B3,€¦. Is this possible? I can get everything but the €śmove down one cell and paste€ť command. I have been struggling with this for days, so help would be much appreciated! Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Do you mean something like below ?
Private Sub Worksheet_Activate() Dim i As Double For i = 1 To 10 ' from B1 to B10 Me.Range("a1").FormulaR1C1 = "=rand()" Me.Range("b" & i) = Me.Range("a1").Value Next i End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Would this do?
Sub doit() Range("A1").Select Selection.Copy For x = 1 To 10 Cells(x, 2).Select Selection.PasteSpecial Paste:=xlPasteFormulas Next End Sub "Satchmo2006" wrote: Hello, I am desperately hoping someone can help me with writing a macro. Just to simplify, lets say that I have the formula =rand() in cell A1. Lets say I want to copy and past the value into cell B1. I want to recalculate and repeat this process and paste moving to B2, then B3,€¦. Is this possible? I can get everything but the €śmove down one cell and paste€ť command. I have been struggling with this for days, so help would be much appreciated! Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |