lastrow.formula

  1. I

    Error in IFERROR formula

    Hello, I have the code shown below which runs properly and fills in columns with a "0" if the search work (in cell I1) is not present in cell B2. I would like for the cells to display " - " instead of "0" but I get "Run-time error '13' Type Mismatch". Can anyone explain why or how to accomplish...
  2. J

    VBA Help speed up and stop not responding

    HI All I am new to VBA and looking online and recording Macros to help build my code. But I am having a issue when I get to part of my code it is slow up and also making excel go into not responding. Is there anything I can do to my code to speed this up when I run it and also stop it going...
  3. P

    how to remove values once cells been updated

    hi I have the code below where I have added a vlookup, but once the cells are updated I want to remove the vlookup, I have tried '.value=.value' but that didn't work can you help please? Private Sub CommandButton1_Click() Dim copySheet As Worksheet Dim pasteSheet As Worksheet Set copySheet...
  4. H

    Fill Dates

    Is there an easier way to fill column B with the month of the date in column A. This is what i am currently doing: Sheet1.Range("B3:B" & Lastrow).Formula = "=Text(A3,""MMMM"")"
  5. H

    Macro not working when new parameter added

    So, I've been working on this for quite a while with no luck. All it's supposed to do is merge two files together. It works until I add a new parameter (location). I've tried several variations on the code with no luck. Do I have to add another VLOOKUP? 'Opening Source Files...
  6. J

    Combo Box input not being recognized when running macro

    Hello All I have a userform with a combo box that is populated by a named range which returns a selected fiscal period (example: MAY-18). A user will select the period that corresponds with the file name they wish to open with the macro in order to pull cost data. Unfortunately I am getting...
  7. sharky12345

    Incorporate LastRow into Formula

    Can someone show me how I can incorporate a 'LastRow' variable into a Formula? What I have here isn't working; Lastrow = Range("K55").End(xlUp).Row + 1 Range("L" & Lastrow).Formula = "=VLOOKUP(K "& Lastrow",$D$8:$I$31,6,FALSE)"
  8. B

    Compile Error: Variable Not Defined

    Hey there! I am trying to get some code to work and had a friend help me try to clean it up. It worked when he ran through it, but now I am getting a Compile Error. I have made the line where the error occurs bold. The string of code is as follows: I would also like to add that I renamed...
  9. B

    Inserting Columns

    I have the following code to insert columns, but for some reason it won't insert them. It doesn't give an error, the macro just stops and doesn't insert: Sub Worksheet_S10() 'Activate Workbook Workbooks("WorkBook.xlsm").Activate 'Activate Worksheet...

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