vba formula

  1. L

    skipping blank cells in vba for converting hyperlinks to text address

    this is the code i have so far for converting my "Email" hyperlinks all in column G into the actual email address text. Sub AAshowHyperlink() Range("G1").Activate Do Until IsEmpty(ActiveCell) If ActiveCell.Hyperlinks.Count <> 0 Then ActiveCell.Value =...
  2. D

    desperately need help! need to copy formula without a range changing, or write VBA for index array

    I have written arrays to populate the following information: 1) the number in the 1st cell in the range containing a NUMBER to F5: {=INDEX(N5:AR5,MATCH(TRUE,ISNUMBER(N5:AR5),0))} 2) the number in the cell at the top of the page that corresponds with the cell found by this array to E5...
  3. E

    Block IF? (VBA excel 2003/2007)

    Well I am running some code and it keeps saying block if! how do u make a block if function cus i cant seem to correct it thx for ur help in advance
  4. R

    VBA - Copy section of data from a sheet and past below (month on month) HELP.

    I just did a VBA course however I am having trouble getting started on this one. I have a spreadsheet which I use do a rec each month. There are multiple tabs with the data (but the inputs vary) and instead of going through all of the tabs and copy pasting the table from the prior month below...
  5. S

    Comparing Two data columns in two workbooks and filling a third column using VBA

    Ok- so have another tough one. I have two workbooks, one is called Projections, one is report. Using VBA, I want to compare column A in Report with Column A in Projection. If they are the same then I want Column C from Projection to fill in Column G in Report. These are two different...
  6. D

    Excel Formula to VBA

    Can someone please assist with writing this formula in VBA: =IF(RIGHT(TEXT(C2,"mm/dd/yy hh:mm:ss"),2)>"30",LEFT(C2,14)+0.000694,C2) This is what I have so far, but I am receiving a type mismatch error. Please be aware this is a test Sub that I am using via a command button on a sheet...
  7. T

    HELP:Color code values with function in excell

    Hi, I have values that I want to color code in my table. Originally I was tagging them as numbers, but instead I need them as colors. Function conversion(pVal As Double) If pVal > 0.05 Then conversion = "1" ElseIf pVal > 0.001 Then conversion = "2" ElseIf pVal >...
  8. A

    VBA wont return cell value

    I'm using the following code in a worksheet change event but it wont return the Target Offset value. However if I delete the linked value and type in Sun or any other day it finds it. If Not Intersect(Target, Range("D8:D38")) Is Nothing Then If Target.Value = Range("P40").Value Then If...
  9. H

    VBA formula

    Hi, How to 'convert' this formula to work in VBA code: In cell H4, the formula is: =IF(OR(B4=0,C4=0,D4=0,E4=0,F4=0,G4=0),"Incomplete Invoice", IF(C4>E4,"D.O.Date>Invoice Date?", C4+G4)) How to write this formula in VBA module? (Note: H4 is date) Thanks!
  10. W

    vba - set cell to formula

    Hi, I would llike to set a cell to a formula but am having a bit of difficulty. here's my code: Range("D33").Formula = "=IF(OR(C3="F 18-65", C3="M & F 18-65"),"35% 18-34, 35% 35-49, 30% 50-65", "see description below" ) " I get a compile error, expected end of statement at the first F. I...

We've detected that you are using an adblocker.

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.
Go back
Back
Top