lrow

  1. C

    Data Entry Form : VBA Run-time Error '91': Object Variable not set with ws.cells.find function

    Hi All, I'm relatively new to VBA, and by no means a coder, so apologies in advance for any VBA/coding illiteracy in the following. Using an amalgamation of online code and trial and error, I have created (almost) a data entry form that allows me to add entries to a worksheet. The form...
  2. T

    VBA - Opening a file within a macro

    Hi, when I open a file within a macro, I'm typically hitting F8 so that I can see if all the step are working properly, but when I open a file within the macro, it runs the macro fully, is there anyway to prevent this so that I can just keep hitting F8 to see if I have an errors and the...
  3. C

    excel vba Is it possible to auto sum and add to vba created header?

    So I have this sheet that automatically seperates the data byt column D value then uses that value to create a formatted "Header" for each group and places the name from D into the newly created header. My question is is it possible to add the sum of G in the header as well? Heres my code Sub...
  4. M

    find the last row on a column with formula

    The row 2 to row 30 of first column of sheet1 contain formula below =IF(ISBLANK(sheet2!D2),"",sheet2!D2) =IF(ISBLANK(sheet2!D3),"",sheet2!D3) . . =IF(ISBLANK(sheet2!D30),"",sheet2!D30) The thing is only row two actually have a value, from row 3 to row 30 is blank based on formula, but when i...
  5. Z

    Range selection with generated row location

    Hello all, I'm having a debugging issue on a set of code. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count > 1 Then Exit Sub 'Initiate Work Dim lrow As Long Dim NOCws As Worksheet Dim TPws As Worksheet Set NOCws = ThisWorkbook.Worksheets("NOC") Set TPws =...
  6. T

    VBA Filter for $-

    I'm trying to filter, not sure why its not workig, I seem to always have an issue with the does not <>, there's a formula in that cell, but it shouldn't matter I wouldn't think. With ActiveSheet .AutoFilterMode = False With Range("a2:m2" & lRow) .AutoFilter...
  7. M

    Not detecting all arrays

    I'm using the code below to delete all rows that don't contain a list of words. For some reason it is deleting the cell that contains the word Apple and keeps the other three with Banana, Orange & Apple Tree. Hopefully someone can help me out. Also is it possible to search for Apple and...
  8. C

    Weird one, I insert rows after new data set but.........

    Is it possible to insert the row as a merged range from column 1-7 (A:G) and set it to black fill with white bold text? This is what im currently using but I am not sure how to integrate it since the blank row location will be dynamic depending on the data Sub IRCV() Dim lRow As Long...
  9. W

    Pasting a formula into a dynamic table column

    I am pasting a Vlookup formula into a table (information) that is dynamic. The formula goes fine, however I run code after that to replace #N/A with a 0. I have a line of code that finds the last row, however all my #N/A code does is find the last cell and place a 0 in it. Sub...
  10. T

    VBA converting accounts to numbers

    I'm trying to convert a column of accounts to numbers so that I can complete a Vlookup. I just want to convert them to numbers Sub Budget_EC() Dim lRow As Long Dim lastrow As Long Dim rng As Range Dim fd As Office.FileDialog Set fd = Application.FileDialog(msoFileDialogFilePicker) lRow...
  11. I

    How to do Now + 1 second for range

    Hey guys, if I want to Increment the Range that I have setup below for Now + 1second and then Now+2s.. ect ect.. How do I do that? I tried Now + TIME(0,0,1).. and it gave a mismatch error. Sub Fixer() Worksheets("Default").Activate Dim lRow As Long lRow = Cells(Rows.Count, 3).End(xlUp).Row...
  12. T

    VBA Excel - copy word in cell down the column until the last cell in that column

    I'm trying to copy the word Yes down to the last cell in that column, using G as an anchor. With Windows("Rental Rec.xlsm") Sheets("Owned").Select lRow = Cells(Rows.Count, "G").End(xlUp).Row With Range("a2:bh" & lRow) .AutoFilter .AutoFilter Field:=3...
  13. T

    VBA Excel - if Data in one column, enter current month in another column

    trying to say, if data in column b, enter current date in column aj (date should be 15th of current month), is there another way to do this, Sub Filter() Dim lRow As Long Dim ts As Date If AutoFilterMode = True And FilterMode = True Then ActiveSheet.ShowAllData lRow =...
  14. T

    VBA Macro - If word cancelled in one column, enter Yes in another column

    trying to say; if the word cancelled in column b, enter yes in column ab Sub Filter() Dim lRow As Long Dim ts As Date If AutoFilterMode = True And FilterMode = True Then ActiveSheet.ShowAllData lRow = ActiveSheet.Range("A30000").End(xlUp).Row With Workbooks("Rental...
  15. T

    VBA Excel - If word in this column delete contents from another column

    I'm trying to say; if the word payout is in column c, delete contents from column b. I"m getting an error message @ If (Not Intersect(Target, Rows(3)) Is Payout) And (Target.Count = 3) Then Sub Filter1() Dim lRow As Long Dim ts As Date If AutoFilterMode = True And FilterMode = True Then...
  16. T

    VBA Macro - changing a range of cells in a column from No to Yes

    I'm trying to change the word No to Yes in column M I have headings in row 2, so anything after that to the last cell in column M I want to change to Yes, but I'm getting an error. Sub Filter() Dim lRow As Long Dim fnd As Variant Dim rplc As Variant fnd = "No" rplc = "Yes" If AutoFilterMode =...
  17. T

    copying formulas from two columns down to the last cell in those columns

    Im trying to autofill the formula in cell A3 and B3 down to the last cell in those two columns using D as my anchor. but the code is not working. I'm getting an error message under " Selection.AutoFill Destination:=Range("A3:B3: & lrow")" lastrow = Cells(Rows.Count, "D").End(xlUp).Row...
  18. K

    Excel VBA Range.sort alternative?

    Hello all, Wondering if someone could help? I am trying to sort two tabs in my workbook (three total tabs) which I am able to do with the below: Sub SortAllSheets() Sheet1.Activate Dim lrow As Long lrow = Cells(Rows.Count, 1).End(xlUp).Row Range("A1:R" & lrow).Sort key1:=Range("J1:J" &...
  19. O

    SUMIFS across multiple worksheets IF the sheet name meet the criteria with VBA

    Hi All, I have a dynamic range of sheets that is updated daily (new sheet added daily with the same format but updated values). I need to modify the code below to go through all worksheets and use sheet name as a criteria. For example, if I type date 20.02.2019 on Sheet1.Range("A1"), it needs...
  20. H

    Macro to copy data

    I have numbers in Col B followed by a full stop eg 1. 20. etc I have tried to write code to copy the value in Col K that corresponds with 30. (same row) in Col B to Col K that corresponds with 25. in Col B same row For eg the value in col K for 30. is K40 and the value is 108,965 and this...

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