xlvalues

  1. T

    Edit Specific Range if Cell Value is True

    Hello, I have the code below: Sub editrange Dim nLastRow, i As Integer Set wbCurrent = ActiveWorkbook Set WS = wbCurrent.Worksheets("Sheet1") nLastRow = WS.Cells.Find("*", LookIn:=xlValues, searchorder:=xlByRows, searchdirection:=xlPrevious).Row For i = nLastRow To 13 Step -1 If...
  2. Z

    VBA to lookup a combo box value in a different worksheet

    ok so I have been racking my head against the wall to try and figure this out. I have a userform that when the user clicks the ok button. I need to get this to perform a vlookup the value from a combobox in sheet "Employee Data" in range B4:B49. It needs to return the value in column 3. But...
  3. K

    Repeating my code until the last row of data

    Hi , I have the data set <colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody> COL A COL B COL C COL D COL E ROW1 DATA DATA DATA ROW2 DATA DATA DATA ROW3 DATA DATA DATA ROW4 DATA DATA...
  4. A

    pass variables to function to search sheet

    I am trying to pass xlvalues, xlwhole, xlbyrows but I am getting an error msg (byref) when I try to compile this. I have the values that I am trying to pass, come from a table that stores the values. My error is happening at this line: Set ResultRange = FindAll(iRange, kWord, p3, p4, p5, p6)...
  5. S

    Help to make code run faster

    Hi all: I have this code belove to find and copy data then caculate value, this code work fine but I thinks it's very slow. Please help me make code run faster a have another way to do (find data, copy then cacutale) Thanks./. Sub t_All() Dim sh1 As Worksheet, sh2 As Worksheet, sh3 As...
  6. A

    VBA .End (xlUP) not working

    HI On the "Dump" tab, columns A, B, C, F & G ignore the last row of data being my header and paste it over the top and same happens with sheet "FL" data, that it pastes over the top over the top of the last row. So it appears the .End(xlUp) does not work for sheets "AS" and "FL", any idea...
  7. dannyok90

    . find (VBA) not working

    Hi All, The code bellow is looking for values (Materials*) but its not finding en exact match, its finding any cell with Materials or any part of the word in it and copy and pasting from there :/ Any ideas? :) Thanks, Dan Sub MaterialsInsertNewRow() ' Materials Controls Dim b As...
  8. M

    Macro works on first go around, then doesnt work correctly until excel is closed and openned again....only to work once.

    So I am trying to create a button that opens a userform thatasks questions on what the user wants to do. It is kind of hard to explain so Iam going to try to insert screen shots of what I want to happen. Below is part of a table that is created on the main pageentitled “Status Sheet.” <tbody>...
  9. K

    Expand Range until the first occurence of a specific text - VBA

    Good Day Folks I have been trying to expand my selection until the occurrence of "Total"(not including) in the same column. The below code gets me to the cell above the occurrence of "Total" but doesnt expand my selection. Range(Selection, Selection.End(xlDown)).Find("Total", , xlValues...
  10. S

    2 Part question: Using Like & refining code

    Right off the bat, if this should be broken out into 2 separate threads, I apologize and will adjust accordingly (if possible). I just see the two issues somewhat related and so thought that perhaps I could get them both done in one swing. Part 1: The two workbooks I am using are: WorkbookA &...
  11. I

    Simplifying VBA code

    Hi Guys, I have the below code written. But i'm trying to find ways to further shorter it. Could any kind soul please see if i can? Sub BNP()'remove unwanted trades Dim c As Range Dim SrchRng Worksheets(1).Select Worksheets(1).Name = "XYZ" Application.DisplayAlerts...
  12. H

    Paste special from multiple workbooks in a folder to a master workbook

    Hi Excel PROs I need some help. I'm trying to paste values from all files in a folder to a master folder but i keep getting errors in the paste process. This is my code: Sub LoopThrough()Dim MyFile As String Dim erow Dim FilePath As String Dim DestWB As Workbook Dim SourceWB As Workbook...
  13. C

    Find XlSpecialCellsValue.xlNumbers in a column with formula

    Hello there, MrExcel community! I've spent a few days now trying to find the answer to the question I am about to pose but I am still missing some that I fear is very simple. I have two adjacent columns of formula, one will return a row number from another sheet or "", the other will return a...

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