.rangea

  1. A

    Trouble adding rows with code

    Awhile back Val was kind enough to write the following code for me which has worked very well up till now. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 3 And Target.Row = Me.Cells.Find("*", searchorder:=xlByRows, searchdirection:=xlPrevious).Row - 2 And...
  2. D

    Alter userform code to search multiple sheets instead of one.

    Hi, Please can someone help me? I would like to alter the following code so it searches all my workbooks sheets instead of just one. Here is my code: Private Sub CommandButton1_Click()Dim at As Long, LR As Long, x As Long, j As Long, val As Double If TextBox1.Value = "" Or TextBox1.Value =...
  3. D

    Amend search userform to search another file.

    Hi, I have this code that searches for data entry of the process order entered in textbox1. What I would like is to expand the search to include previous years entries which are on another file and numerous worksheets. This is the other file: C:\Users\Dell\Desktop\PO Entry Copy.xlsm and the...
  4. V

    Array Formula

    Hi, I have this code and its not working on VBA, but applied with Ctrl+Shift+enter manual its works. With Worksheets("Sheet2") 'Rank With .Range("G5:G" & .Range("A" & .Rows.Count).End(xlUp).Row) .FormulaArray =...
  5. J

    Autofill Issues - Dynamic

    Trying to make this autofill dynamic by adding 2 cell variables - any ideas what I am doing wrong? Thanks. With Sheets("Data") .Range("A" & .Range("AD8") & ":" & "A" & .Range("AD10")).AutoFill.End(xlUp).Row End With
  6. R

    Copy & paste from sheet to sheet at last row with no data

    Hi, I found this as an option but I would like to expand on it if possible. Is it possible to use something like this =OR(CELL("row")=CELL("row",A27)) which highlights the row of a selected cell with the sub below? Id like to select a row then hit an ADD button, and it run the routine below...
  7. B

    Pasting issue with VBA (Simple)

    Looking for help on this, I'm erroring out on my pasting line... Sub TEST() i = 1 n = 2 lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row For n = 2 To lastrow With ActiveSheet .Range("A" & n, Range("A" & n).End(xlToRight)).Cut .Range("A" & n).End(xlToRight).Paste End With...
  8. J

    Object Required VBA

    I am attempting to merge multiple sheets together using this code: Sub Combine() Dim lst As Long 'combines order form into winshuttle ready combinedOE Application.ScreenUpdating = False Sheets(1).Copy Sheets(1) With Sheets(1).Name lst = .Range("I" & Rows.Count).End(xlUp).Row +...
  9. G

    Macro for inserting pictures bug

    Hi guys, I have the following macro which works as follows: once run, it reads the product codes (e.g. 12381-1231) in column B and inserts corresponding product pictures from another folder to the excel file. Now the problem is that even when I save the document and then send it to others, they...
  10. P

    adding items into 3 combo boxes on same userform error as 2 different sheets

    Hi i have a userform with 3 drop down boxes, i want to colate the date from 2 different sheets i have used the code below but i keep getting an error, please can you help, the ComboBox1 and CARRBox the data is collected from the same sheet (IN DAY LISTS) but for MTBox the data is another sheet...
  11. T

    VBA Paste in next free cell

    Dim R As Range, Rng As Range Sheets("CE List").Select 'Removes any duplicates ActiveSheet.Range("$A$1:$A$5000").RemoveDuplicates Columns:=1, Header:=xlNo With Sheets("CE List") Set Rng = .Range("A1:A" & .Range("A" & .Rows.Count).End(xlUp).Row) For Each R In Rng 'Copies name from top of CE...
  12. A

    An Efficient Way of Adding Values to A Worksheet Row By Row

    Sorry for the vague title ... I am kinda at a loss of words on how to best describe what I am looking to do. I am using Excel VBA to extract, analyse and format worksheet data to create a KML file. I have thousands of rows of data to be compiled into the final KML project. The data is one...
  13. C

    Copying 2 dynamic ranges together

    Hi I have this bit of code, but is there a way to combine it so it copies A1:C and P1:R at the same time - By doing it the way I am currently I am having difficulty in lining it up on the destination spreadsheet due to the fact that there are blanks in Col D in Sheet 3, so the previous last...
  14. T

    Adding row with border

    have a sheet with large amounts of data trying to add a row with a border or double line when the series of values change in column a. Here is what i have and it works great for adding the row but i cant figure out how to add the border or the double line. Thanks for your help! With...
  15. C

    macro out ofmemory

    Hi I have the following which repeats itself over and over, until the point whereby excel cannot run it. The only difference in each section is the reference to the cells highlighted in red. Is there a way to consolidate it into a few lines? Thanks Paul With Sheets("Gross Pay")...

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