nextrow

  1. D

    Code reduction exercise

    Hi, I was playing with a very small piece of code, essentially remove rows with X to new sheet and delete from Data sheet. I am trying to see how far I can reduce the code, all three work and it is only a small learning exercise for me. Is this as good as it gets or do you have some advice...
  2. S

    copy cells if sheet 1 has text in cell a125, then paste another sheet next available row

    This VBA not working please help Sub SUMMURYTWO() Sheets("BANKING").Select if IsText("A125").Then("A125:E125").Copy NextRow = Sheets("2018 SUMMURY").Range("A" & Rows.Count).End(X1UP).Row + 1 Sheets("2018 SUMMURY").Range("D" & NextRow).PasteSpecial Paste:=X1PASTEVALUES End Sub
  3. J

    VBA Copy Merged Cells

    Hello my code below, V6 is a single cell and copys perfectly - with D6, it is merged to D6:E7, how do I make this copy too? I have tried D6 but I am yet to have any joy, many thanks. Private Sub Data_to_Database() Application.ScreenUpdating = False Dim NextRow As Range...
  4. J

    Locating the last cell thats in a coulmn then entering a value based on the cell above

    I have a database with a "worksheet" (sheet5) named "Route Sheet" In order to retrieve data from (sheet5) I have a column that acts like a "Primary Key" in access called "ID" The ID column contain numbers in symmetrical order (0001, 0002, 0003, etc) for every row that contains data I use the ID...
  5. T

    Userform data to Excel Worksheet

    Hello. This may be a simple question but, I am new to this. I would like the caption of each visible label to show in rows of column A and the value of the textbox to go in rows of column B. On the nextrow2 variable, I'm getting an error that say "object does not support this property or...
  6. M

    Need help: Run-time error '1004' in VBA code

    I have been running this code successfully, for a while now. For some reason it just started throwing this error code: Run-time error '1004': Method 'Range' of object'_Global' failed Sub New_Associate() Dim NextRow As Range Set NextRow = Range("A1" & Sheets("Helper").UsedRange.Rows.Count...
  7. R

    Worksheet_Change or Worksheet_Calculate

    Looking for some guidance here. I have a workbook that has a dynamic amount of sheets. As of now, I have 4 static sheets and 2 test sheets that are part of the dynamic volume. Each of the test sheets (I'll refer to them as Client sheets going forward), has 44 columns. I'd like to implement...
  8. Y

    Excel VBA Macro find and replace nextRow nextColumn

    Hi there, Here is my task: Sheet2: Column A will contain string that i want to find in Sheet1 and replace with the values given in Columns B to myLastColumn. Sheet1: Column A will contain identical string from row 1 to myLastRow. Each cell will contain string found in Sheet2, column A. I...
  9. M

    Creating Search and Delete Button to delete record

    Dear Excel users, I have created a userform with textboxes that Adds a staff members first name, last name and address on sheet 3 called "Lists". It is working perfectly - How can I also search and delete the same records. Any Suggestions?? All help will be greatly appreciated!! Private Sub...
  10. A

    VBA Code to exclude sheets with no data

    Hi I have this formula below (thanks Rick Rothstein!) that combines all worksheet data in to one worksheet. However, I need to exclude those worksheets/tab with no data at all (only with header). PLEASE HELP ME! THANK YOU!!! Sub Button2_Click() Dim NextRow As Long, Sht As Worksheet For...
  11. R

    creating a hyperlink in a WS cell

    Greetings, below is a snippet from some code that I am using to create a backup copy of a WS, I haven't included everything, just the first part that I believe will pertain to my question. I have been noodling and searching for this for a bit but I am not having much luck. You will notice...
  12. A

    Macro to Insert Character Depending on Value Help

    Hello, I am trying to write a code that when I press a button I get an X inserted in the relevant cell. If Z5 = 1 then put an X to AB5 if Z6 = 2 then put an X in AC6 (See Below). Eventually the Periods will change and AB through AE should be all filled out with Xs. The range is dynamic so...
  13. W

    VBA – Transfer value from selected Textboxes on Userform to multiple worksheets

    I’m really hoping someone may be able to help me with the following VBA problem: I have a data entry Userform with 21 textboxes which I’m using to collect the user’s details. In the first instance I would like the values (data) from all of the textboxes to be transferred to my workbook...
  14. V

    Unique ID for new userform's entries

    Hi. I want my userform to insert unique id for every new entry starting from 1. Could you please take a look at the code below and advise how to edit it to add this feature? Private Sub OutPutData() Dim NextRow As Range Set NextRow = Worksheets("List").Cells(Rows.Count...
  15. C

    Application-defined or object-defined error

    I want to use the code shown below to gain a better understanding of how copy and paste work in VBA. When I run the code it gives me: Run-time error '1004' Application-defined or object-defined error when it tries to execute Cells(NextRow, 1).Select At that point NextRow value is 6...
  16. L

    VBA multiple if statements, require all to run

    Good evening, ive been attacking this code for ages and just cant get it to run. its not the tidiest code but it made sense to do it this way in my head. ive created a userform,which I want to transfer into 5 rows in a spreadsheet. the first few columns would all contain the same info, name...
  17. P

    Looping through 2 Columns with specific text

    I am attempting to get this to loop down through the rest of cells in columns H and I. Any help appreciated. Sub RangeLoop()' Range("H2").Select Do Until IsEmpty(ActiveCell) If Range("H & NextRow") = "Certified Bilingual" And Range("I & NextRow") = "English"...
  18. S

    Copy Selection Sheet1, Paste Values First Open Row Sheet2

    Good afternoon all, I am trying to develop a simple macro to on button click transfer the data on sheet1 (for example called "Notes") to the first open row on sheet2(for example called "Log"). Below is where I am at right now, which gives me the result after clicking where I can see it shifts...
  19. E

    Copy cells into continuous rows after running Macro

    I currently have a macro that copy the information from one sheet to another and places them in row 2, being that row 1 has headers which is Great. However, how to I format the code to paste the information on the next row that follows on sheet2 after the macro is ran twice. For example, Macro...
  20. M

    Return Data to next empty line of Worksheet

    Help!! I have been tasked with making a user form that gathers basic information and enters in into an excel worksheet, I have created and coded the below but cant make the data return to the next empty line it just over writes the previous entry. I have included the whole code.As I don't...

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