Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 12/9/2014 at 6:34:56 AM Claus Busch wrote:
try: Sub Test() Dim i As Long Dim rngC As Range For i = 1 To Sheets.Count For Each rngC In Sheets(i).UsedRange If Len(rngC) 0 And rngC.Style = "Currency" Then 'rngc will increased by 5% rngC = rngC * 1.05 End If Next Next End Sub Regards Claus B. I am getting "Run-time error 13" and "Type mismatch" errors. I'm not a macro expert so I don't know how to debug this. Also, where in your macro does the user enter the desired % increase and where does it round to two decimals? -- tb |
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 | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |