fnd

  1. Guzzlr

    Insert Found Column

    Set fnd = Range("8:8").Find("WBS", , , xlWhole, , , False, , False) If Not fnd Is Nothing Then Intersect(Range("8:5000"), fnd.EntireColumn).Copy Range("B8").PasteSpecial xlPasteValues Intersect(Range("8:5000"), fnd.EntireColumn).ClearContents End If Hello The code above is working...
  2. B

    VBA find offset & replace cell value

    Can anybody help me a bit here, I am trying cycle through a folder open each Workbook in turn find a value in column I on Cost sheet and then offset from that cell to column L , I’e 3 columns across. Then I need to change that cell value to 60. The code to cycle through the files and open them...
  3. R

    using a comboxbox1 with an offset

    I have a piece of code that works well but I would like to take it to the next level. I have a series of vendors that are on a list and the code below works well. It searches the range locates the vendor code then the offsets copies the values onto another worksheet. what I would like to do is...
  4. S

    Using VBA Replace Function to Edit Formulas

    I'm trying to create a loop to Find and Replace parts of formulas on my sheet labeled Output. With my current code, the replace function isn't working and I suspect it's trying to replace string functions only. I need this to alter the formulas. For example here is my array on Sheet1 with column...
  5. L

    Help to combine two Private Sub Worksheet_Changes

    Hi, I am using VBA to automate values in a specific column for a tracking sheet. It works great but as always is the case I am wanting more. Can anybody help me reorganise these 2 pieces of code so that they work simultaneously in the same worksheet change? Here is the code: Private Sub...
  6. P

    auto update text box from combobox in sheet1

    Hi Good afternoon, i have the code below which doesnt work in the workseet, i have combobox and textbox in sheet1, and the data in sheet 2 the code below works if the combo/textbox was in the userform but it doesn't work if in the worksheet (sheet1) can you help me please. Private Sub...
  7. O

    One workbook's sheet selection change code is running in all opened workbooks.

    Hey, I have the following code that runs inside a workbook category of workbook A Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Application.OnKey "{b}", "search_b" End Sub and the following code that runs inside a module of the same workbook, workbook...
  8. O

    slight adjustment to existing code.

    Hello, I wanted to adjust the row scroll when the following code runs. Sub search_a() Dim Fnd As Range Set Fnd = Range("H:H").Find("b*", , xlValues, xlWhole, , , False, False) If Not Fnd Is Nothing Then Cells(Fnd.Row, ActiveCell.Column).Activate End Sub the above code will take me...
  9. G

    Next empty row and Looping

    Hi, I hope someone can help me with this code. I’m trying to make it paste the information to summary sheet and then copy the same information from other worksheet. There are 15 worksheets in one workbook. Here is my code. Thank you in advance for your help. Sub SearchForString() Dim wsSource...
  10. O

    VBA code: If not found then Msgbox

    Hey everyone, How are u? Could you please help me with the code below that searches in column A, a word that begins with bel. All working great, but if it isn't found then pop up a message for 1 second "Entry not found". Sub search_bel() Dim Fnd As Range Set Fnd =...
  11. A

    Type Mismatch Error - VBA Code

    Hello all, As I am sure many of us do, I have found a code to accomplish what I am looking for. To clear formats, and then with a msg box, find in a range all that match my criteria and highlight. Although, the issue I am having now is a type mismatch error on this specific line Set...
  12. Guzzlr

    Finding a Title Heading, Cut and Paste

    Set Fnd = Range("6:6").Find("%", , , xlWhole, , , False, , False) If Not Fnd Is Nothing Then Intersect(Range("M7:M5000"), Fnd.EntireColumn).Cut Range("Q7").PasteSpecial Paste:=xlPasteValues End If I wish to find "%", then cut and paste special values, but as usual, It tells me a...
  13. D

    Error referencing lastRow

    Hi I am trying to input a formula into column V as below. I get a Compile error: Expected end of statement message pop up. Dim lastRow As Long Set fnd = Range("A:A").Find("Currency", , , xlWhole, , , False, , False) If fnd Is Nothing Then Exit Sub lastRow = Cells(Rows.Count...
  14. P

    commandbutton on click update textbox1

    Hi hope you can help me please, I have the following code below, where when command button is clicked on I want it to auto update textbox1 with the data it finds in sheet 5, Colum A and row 1, can you help me please? Private Sub CommandButton5_AfterUpdate() Dim Fnd As Range Set Fnd =...
  15. R

    Adjust copy-formula to not include format

    How do I adjust this script so it doesnt paste format and only values? Sub Spara_Statistik_Vecka() ' Det här makrot kopierar veckostatistik till historik Dim Fnd As Range With Sheets("Tjänster") Set Fnd = Sheets("Tjänster").Range("N1:XFD1").Find(.Range("C2").Value, , , xlWhole, , ...
  16. Guzzlr

    Find, Intersect Title

    Hello All, Sub Find_ManHours() Dim Fnd As Range Set Fnd = Range("A:A").Find("MAN-HOURS:", , , xlWhole, , , False, , False) If Not Fnd Is Nothing Then Intersect(Range("4:5000"), Fnd.EntireColumn).Copy Range("G4").PasteSpecial Paste:=xlPasteValues End If End Sub...
  17. D

    VBA Regex Pattern

    Hi, can someone tell me the pattern for extracting variable length of letters starting from an alphanumeric string, The string will always start with letters first. Here is the Code I am Using Private Sub Test() Dim Rng As Range, Fnd As Range, x As Range Dim strPattern As String...
  18. Guzzlr

    Insert a Missing Word to Find

    Hello All... I have another issue. Set Fnd = Range("4:4").Find("Bureau", , , xlWhole, , , False, , False) If Not Fnd Is Nothing Then Intersect(Range("4:5000"), Fnd.EntireColumn).Cut Range("M4").Insert shift:=xlToRight End If What if the word "Bureau" is...
  19. P

    error on an auto update

    hi i have a code below that when i enter a number in TextBox11 it will find the data automatically to enter in the MPANBox, but it keeps coming up with an error please can you help me on this? many thanks. Private Sub TextBox11_AfterUpdate() Dim Fnd As Range Set Fnd = Sheets("Export...
  20. R

    Error Handling with set Fnd

    Good morning, when I run the code listed below it works perfect until I get to an empty cell then the Set Fnd area highlights yellow and I have to Debug. I've tried the If Fnd is Nothing then Exit sub (actually tried a variety of that) it just ignores it. I've also tried to use a message box...

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