I have a specified range selected.
Range(ActiveCell.Offset(0, -9), ActiveCell.Offset(0, -3)).EntireColumn.Select
Now, I have to replace all numbers with zero in the above range, except formulas.
Can anyone help me?
Hello,
I have a workbook with multiple sheets and I'd like to run this macro on all sheets. The code below will run on the first worksheet, but not on all. If anyone can see why it's not looping through all the sheets I'd appreciate it.
<Code>
Sub Add_On_Time_Or_Not_To_Each_Sheet()
Dim ws As...
Hi all
I have an extract from a something i'm working on
here is the code extract
Set f1 = Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 2))
Set f2 = Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 4))
Set f3 = Range("ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 5)")
All i want to...
Sub approvePurchase(control As IRibbonControl)
Dim rng As Range
Set rng = Nothing
If (ActiveSheet.Name) = "Purchase List" Then
If Not Application.Intersect(ActiveCell, Range("I2:I600")) Is Nothing Then
If ActiveCell.Value = "Pending" Then
ActiveCell.Value = "Approved"...
Range("E2, G2").Select (This is what I want to do, but without specific cell addresses)
Range (ActiveCell), Range(ActiveCell).Offset(0, 3).Select
What syntax can I use to do this?
(hope this makes sense!)
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.