rngfound

  1. A

    userform listbox add items but not if they are marked cancelled

    When adding items to a listbox, how do i avoid ones marked "Do Not Use" (DNU). This is where I am picking up my listbox contents: Private Sub FillResults() Dim ws As Worksheet Dim rngFound As Range Dim strFirst As String Dim strSearch As String Dim strWSname As String Dim...
  2. A

    userform listbox - using find to populate

    hi all, i'm using the following code to find a particular name in my workbook, and then return particular cell value from the sheets on which it is found. Public Sub search() Dim ws As Worksheet Dim rngFound As Range Dim strFirst As String Dim strSearch As String Dim...
  3. K

    help with vba copy from one worksheet and paste in another

    I'm trying to learn VBA but, haven't been able to get my code to work. I have a worksheet called Leases. In column "F" of this worksheet I have a dropdown menu with "Yes" & "Question" as the options. I want to copy the entire row (cells A - J) if cell "F" contains either of those options. Then...
  4. N

    Vlookup in multiple sheets

    I want to make a vba function that looks for a value from a range in sheet "Data", and looks for all the values in column A of that sheet in all of the following sheets. if a match is found, a summary sheet will be created, and it will contain all the values found and the accumulated addition of...
  5. S

    Finding Errors using the .Find in VBA

    Hi All, Just need a little help refining my macro. I'm trying to find errors in a column using part of the following script... Dim rngFound As Range Set rngFound = Columns("N").Find(What:=IsError, After:=Range("N4"), LookAt:=xlWhole, _ SearchOrder:=xlByRows, SearchDirection:=xlNext...
  6. C

    Delete Rows if Column A contains value from list across all worksheets

    Hi guys, I found this code in this thread: https://www.mrexcel.com/forum/excel-questions/549906-vba-delete-rows-if-column-contains-value-list.html And it works perfectly, but I am not sure how to apply the same code for the entire worksheet vs. just the active sheet? Any help will be super...
  7. N

    Expand Existing Macro to Not Select Empty/Blank Cells

    Hello, I have this macro that selects cells based on a font color. I need to expand this so it also only selects cells that have a value (text in the cell) and/or doesn't select empty cells (No text in the cell). The reason for this is the cells are sometimes copied around the sheet, then...
  8. Belair58

    Cut and Move relative to starting position

    Hello, I'm attempting to find a word, highlight that cell and all the cells to the right of it. Cut that range and then paste it over 3 cells to the right. Once I get the cut and paste working, I'll need to work on the loop to look at the entire column. I think I'm close but I'm getting a...
  9. M

    VBA lookup/Transpose function

    I have been using the following code for some time now, and of all the code that I use this has always been problematic. I often get a type 13 mismatch error and my macro fails to run properly. Dim rngFound As Range: Set rngFound = Columns("A").Find(WSO.Range("L2").Value) If rngFound...
  10. T

    VBA for find, copy, paste from multiple workbooks into original

    I'm going to preface this with I essentially have Frankenstein'd some code together from googling since my VBA skills are very low. Here's what I'm trying to do: I want to go through multiple workbooks (saved in different locations), search a certain column for the word "fail", if it's there I...
  11. H

    Search through column headers to find the right Column to copy and paste

    I am trying to look for a column name then select the data below to copy to another sheet HELP! Sub Trial() Dim rngFound As Range ActiveCell.AutoFilterMode = True Set rngFound = Rows(1).Find("List", Cells(1, Columns.Count), xlValues, xlWhole) If Not rngFound Is Nothing Then...
  12. R

    Find Function Not Working

    I'm not sure why, but this code isn't finding instances where a formula result in column T is "Reviewer Level Conflict". The last row is identified correctly, and I've verified that the value is present. Private Sub cmd_Create1LRFiles_Click() Dim mws2 As Worksheet Dim rng, rngFound As Range...
  13. D

    VBA clear contents of other adjacent columns

    Sub Button44_Click() Dim rng As Range Set rng = Range("B7:B50") Set rngFound = rng.Find("ABQ") If rngFound Is Nothing Then MsgBox "NOTHING TO CLEAR!!!" Else: Cells(rng.Row, 7).ClearContents Cells(rng.Row, 8).ClearContents End If End Sub Here's the code I'm starting with, and I'm not sure...
  14. N

    Macro to Insert an Equals Formula

    I need a macro that will insert an equals formula into a group of selected cells. I have a macro (shown below) that finds a unique font color within my current selection. I need to add a function to the end of this macro. After the font color is found and those cells are then selected, I need...
  15. N

    Find Multiple Text Colors of a Selected Range

    I have a macro that was developed with the help of this forum. This macro searches my selected range, finds and selects all cells that are formatted with the text color RGB(1, 2, 2). I need to modify this macro to find multiple colors within my selection. I need to find text color RGB(1, 2...
  16. N

    Find Cells of Certain Text Color Only within the Range Selected

    I have a macro that someone on this forum helped me with a while back. The macro works perfectly but now I need to make a modification and the code is way above my skill level. In the current form this macro searches my entire worksheet, finds and selects all cells that are formatted with the...
  17. K

    How do you hyperlink to a cell with the same value?

    Hi! I'm creating a hyperlink to make it easier to navigate the spreadsheet. With the active cell, I want to hyperlink this to a cell in the 8th row with the same value as the active cell. Can someone explain to me why this doesn''t work: Sub FindSelection() Dim rngFound As Range wsn =...
  18. C

    VBA Help with changing tracker on different excel sheet

    Good Morning, I have an excel sheet I'm building that does budgeting for specific types of projects. I have most of the VBA worked out for that. The part I'm having issues with is updating an exteral excel tracker. This is the script to create the tracker if it doesn't exist: Sub...
  19. G

    Delete rows where value in is list on seperate sheet

    Hello, I have the following code , which identifies rows to delete from a list on a seperate sheet. the only issue is i need to remember to change varList = Range("deselect!A1:A10").Value if the list has more than 10 entries. I have tried adding a last row count into the VBA, but cannot get...

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