.cells.rows.count

  1. F

    Random Number Copy to Cell

    Good Day I have the following code that picks a random number and copies to a textbox. This all works fine. Private Sub Image22_Click() Dim v As Variant Dim MsgBox As String 'Dim strPassword As String With Worksheets("Sheet1") 'change this to the actual sheet name v =...
  2. lockarde

    InStr Function - singling out specific words

    Good morning all, I've read sesveral similar posts, but nothing pertains to my exact case so I figured I'd make a new post and see what you think. I'm trying to sort through a database of products, each has one or more tags associated with it. I'm using InStr function to match a word with a tag...
  3. D

    Vba index/match function not working

    I am trying to do a simple INDEX/MATCH using vba, but without success. I have 2 worksheets (I would attach a sample but I don't have permission) Sheet"Journal" - holding criteria for my lookup. D7 to end = 1st lookup. E7 to end = 2nd lookup. I7 to end is where the result goes The values in...
  4. M

    Copying Non-contiguous columns from one workbook and pasting them into a Table in another workbook

    Hello all I am a first-time poster to this forum, but have read through a lot of the posts and have gained so much knowledge to help in my own journey as a relative novice in learning and applying VBA in my job as an analyst. I have a question as to how to paste certain non-contiguous columns...
  5. G

    vlookup only returns zero when looking at sum

    Hello, I have the following vlookup vba, which is looking at the result of a sum formula =SUM(AQ2+AR2+AS2) Dim u As Long With Sheets("submissions") u = .Cells(.Rows.Count, 1).End(xlUp).Row End With With ActiveSheet LR5 = .Cells(.Rows.Count...
  6. R

    Runtime error 1004

    L.S., I am trying to populate column P with a formula that exists in cell P5. The number of rows is variable and is dependent on the number of rows in column A. As column P is pre-populated, it might be longer or shorter than column A before running the code. It should end up with the same...
  7. M

    Run time error 1004 - VBA Vlookup

    Howdy, I have this code With Sheets("CDG Current") LastRow = .Cells(.Rows.Count, "C").End(xlUp).Row With .Range("N2:N" & LastRow) .Formula = _ "=IF(K2>VLOOKUP(RC4,'CDG MinMax'!R2C1:R6666C23,5,0),"""",IF(E2=E1,IF(SUMIF($E$1:$E1,E2,$N$1:$N1)+K2<0,M2,0),M2))"...
  8. W

    Code stops, VBA editor opens automatically...

    Hi All, I have some code running on my computer that is operating fine, but on another guy's computer, it gets hung up. on the Worksheet Change, I have this code (partial): Private Sub Worksheet_Change(ByVal Target As Range) Application.ScreenUpdating = False Application.EnableEvents = False...
  9. D

    Code that auto filters but also need to add copy workbook

    Hi, have been on this forum before, only a few times but unfortunately was made redundant and lost my login details........never use your work details for logging in!!! I have a query that i hope someone can help with. I've adapted a vba code from the net to copy and paste from my data...
  10. S

    Run-time error 1004 autofilter method of range class failed

    Hi guys, I have a problem with the following code in VBA. I'm very new to VBA, so I can't see what seems to be the problem.... The followin code gives me Run-time error 1004 autofilter method of range class failed.... Sub SplitData() Dim ark As Worksheet Dim arkNew As Worksheet Dim Data As...

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