Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code that I need to take a range (f16..f51) and
increase/decrease it by a user input value i.e. f16=e16*(1+user input) Option Explicit Dim rng As Range Dim lastrow As Long Dim cell As Range Dim Amt As Double Sub Test() Amt = InputBox("By What % (As Decimal)") Set rng = Range("f16:f51") For Each cell In rng cell.Value = (cell.FormulaR1C1 = "=RC[-1]*(1+Amt),") I get "FALSE" in each cell. What am I doing wrong? Ronbo |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Run VBA code only worksheet change, but don't trigger worksheet_change event based on what the code does | Excel Programming | |||
Shorten code to apply to all sheets except a few, instead of individually naming them, and later adding to code. | Excel Programming | |||
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... | Excel Programming | |||
Excel code convert to Access code - Concat & eliminate duplicates | Excel Programming |