emptyrow

  1. Weeble

    VBA Worksheet Change, loops and crashes Excel. How to work around?

    So I am trying to paste information into a sheet. When information is pasted i want this code to run. Private Sub Worksheet_Change(ByVal Target As Range)Dim emptyRow As Long 'Sätt fliken lager som aktiv Worksheets("Uppföljning").Activate 'Determine emptyRow emptyRow =...
  2. D

    empty row with listbox values

    Hi all, :) I have a code that allows me to put in the column B of an Excel sheet all the items displayed in a listbox Here is the code Sheet9.Activate For b = 0 To ListBox1.ListCount - 1 With Cells(b + 3, 2) .ColumnWidth = 15 .Value = ListBox1.List(b) End With Next But If...
  3. H

    sorting vba button

    Got a sheet with a list of inventory items on column "A". Every week I insert 5 new columns from C-G with information for that item such as how many were used, restocked, total items, price of item, and cost of restocking. I created a text box, that will help adding inventory to the sheet...
  4. B

    VBA: Find and add data from userform to first empty row in sheet (not working)

    Hi guys, I'm having trouble with a macro. I have a worksheet with lots and lots of macro and they work perfectly together. However, this code (which I've shortened, because of its length) isn't working properly. I have a sheet full of data for my reservation program. First names, last names...
  5. P

    Add multiple lines from ListBox in columns

    Hey guys, I have a problem I can't really seem to get working. As of now I have a userform where you can input in to textboxes, listbox and adds it to another sheet. That works fine. Right now i want to give the user "add item" listboxes where they can add multiple items in the left listbox...
  6. P

    Adding N/A to empty textboxes in userform

    Hello, Good afternoon please can you help me I have the code below where I am trying to add N/a to the empty textboxes in my userform if not filled but I am getting an error, please can you help me? I am getting an error on Conventional.Show Private Sub CommandButton3_Click() Dim...
  7. P

    Writing data from UserForm to empty row and different colums

    Hello, I am busy with make a code that we can use de UserForm, fill in the Form and the button OK will copy the information into the first empty row and in differen colums. This is the code I Use: Private Sub OK_Click() Dim emptyRow As Long 'Make Sheet1 active Blad5.Activate...
  8. P

    How to automatically goto new line when click on add

    Hi all, i have te code below but it doesnt add the data onto a new line automatically can you help me please. For example i have a userform to fill out and in that i have a command button2 that when click will transfer the data added to sheet4, but it keeps overwriting on the same line and...
  9. L

    determine empty row

    hi i am reading a code and part of it is to determine an empty row, please see below. I could not understand it!! I tried to enter A1=10, A2=20, A3=30 I got 4. So row 4 is empty. So far so good. But when I did A1=10, A2=(empty), A3=30 I got 3 but row 3 is not empty. Is the code below makes any...
  10. D

    Getting userform to look at column b as empty

    Trying to find out what I need to change to get a userform to look at column B for empty row and not column A I want to number column A this is the code I have now it finds the empty row in A [code] rivate Sub CommandButton1_Click() Dim emptyRow As Long 'Make Main Sheet Active Sheet1.Activate...
  11. P

    Adding a range error plz help

    hi, i got the code below where i want to add the data from A38 - K38 but i keep getting error 'Run-time error 91 - object variable or with block variable not set' please can you help me with this? Private Sub OKButton_Click() Dim emptyRow As Long With ThisWorkbook.Sheets("Northants")...
  12. P

    USERFORM fill out and transer data to new sheet

    Hi really helping you can help me with the code below please, i have a userform which i can fill out, when i click the ok button i want the information entered to be transferred into sheet6 in columns a - d then every time new info is added to goto a new lane, but i keep getting erros pop up...
  13. Weeble

    VBA Textbox CDbl not working with Dots. 2.5 = 25

    Dim emptyRow As Long Worksheets("Tider").Activate 'Determine emptyRow emptyRow = WorksheetFunction.CountA(Range("A:A")) + 1 'Transfer information Cells(emptyRow, 1).Value = CDbl(DateText.Value) Cells(emptyRow, 6).Value = CDbl(UserText.Value) Cells(emptyRow, 7).Value = CDbl(P10Text.Value)...
  14. G

    How to insert Data form Userfomr into Spreadsheet

    Here is the code I have, but it is not working. Private Sub CommandButton1_Click() Dim emptyRow As Long 'Activate Data Request Worksheet Sheets("Request Data").Activate 'Determine emptyRow emptyRow = WorksheetFunction.CountA(Range("A:A")) + 1 'Transfer information Sheets("Data...
  15. U

    Name Manager

    Hi All, I have a small VBA macro that I want to use to update a names range for a combobox on a userform However when I run the code the name range becomes blank. Looking a the Name manager it is working as the Refer To field has the correct range in, although the Value field also shows the...
  16. M

    Paste on next empty row

    Hello, I'm currently using the following code to copy and paste a range of cells from one workbook to another. Everything is working as intended but next quarter, I need to run this macro again but have the quarter 2 results pasted on the next empty row. If I was to run it again the way it's...

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