finalrow

  1. N

    Next Blank Cell in a Row

    I am looking to dump numerous rows of data into an excel sheet and want to find code that will find the next empty cell in Column B. I cant seem to find a simple solution utilizing a FinalRow type code. Does anyone have a simple and easy way for finding this? thanks,
  2. D

    finalrow = Cells(Rows.Count, 1).End(x1Up).Row Getting a error that I can't get past

    I'm using the below VBA to return information from 2000's rows of data and I keep getting an error when using the line finalrow = Cells(Rows.Count, 1).End(x1Up).Row. Any help would be appreciated! Sub finddata() Dim datasheet As Worksheet Dim reportsheet As Worksheet Dim agentname As String...
  3. H

    Macro to total data from sheet6 onwards

    I have written code to put "Total Value" 3 rows after the last data on Col A & to sum Col B from B2 to the last row containing data in Col B I need the above to occur from sheet6 onwards, but "Total Value" is only inserted 3 rows after the last data in Col A of the active sheet and Col B is...
  4. S

    Copy Data to new Worksheet Based on Column Value

    I have a worksheet called Master Table with columns A-CR. The Column I am searching is in column B. In the same workbook I have a spreadsheet called SearchMasterTable I am using cell C1 in this workbook for the input of the requested lookup. If the data in SearchMasterTable cell C1 equals one...
  5. K

    Convert dates to text with a Vba macro

    Hi could anyone help me with this problem, I would be very happy. I want to draw year as TEXT out from dates in a column with Vba My Test Sheet is like this <tbody> Date Used Formel =TEXT(A1;"åååå") With VBA macro 10-12-57 1957 24-12-2017 2017 2013-12-02 2013 21-12-2013...
  6. M

    Outlook Issue within macro

    I have a macro that copies specific cells of a worksheet, opens outlook, and pastes the selection into the outlook email. It works great with one exception - there cannot be any other outlook windows opened. For example, if I started a new email and then minimized it, when I run the macro, the...
  7. B

    Format Dynamic Range

    Good morning trying to format multiple ranges. 1st range D6:G. the data will change (increase or decrease). the code I am using. Thanks Dim finalrow As Long Dim i As Long finalrow = Cells(Rows.Count, 1).End(xlUp).Row For i = 6 To finalrow With...
  8. N

    If Range is Empty, Unknown number of rows

    I am trying to set up some code to detect if a range of rows is empty, and I will not know the number of rows before hand. This is what I am trying, but it doesnt seem to be working (even if the range is empty, the code doesnt run the next line, it goes to end if) finalrow = Cells(Rows.Count...
  9. B

    am i missing something in code?

    Sub ThirdClass() Dim Finalrow As Long i As Double Finalrow = cells(65536, 1).End(xlUp).Row For i = 1 To Finalrow cells(1, 1).Resize(, 5).Font.Bold = True Next i End Sub error=statement invalid outside type block i want 5th column text=bold
  10. V

    Looping help to skip blank rows vba

    I am moving data from a source sheet to my activesheet. When I do, any blank rows on my source sheet are copying over as well. I do not want this. I want on my activesheet for all the data to be compacted together. How do I do this--what am I missing in my code below? Sub SkipBlankRows Dim...
  11. B

    Use And in IF Statement VBA

    Afternoon My question today is I am trying to apply multiple conditions to a cell. The first condition formats the cell blue if the mod is 0. I would also like to format the font bold. (Maybe other formatting as well) The code I am using below. Thank You. Sub format_every_other_row()...
  12. V

    Filtering, Sorting, and Copying Data to a New Location

    Hello, I am trying to sort through an ever updating spreadsheet and give items a priority. Once the priority is given, I hit my Update command button to populate 5 priority tables (high, med. high, med, med. low, and low). I feel like the below code should be correct for a single priority...
  13. B

    FinalRow / Rows.Count not working

    Hi Ive got the Excel 2016 VBA and macros book and am learning lot but one huge frustration, the key line .... FinalRow = Cells(Rows.Count,1).End(x1Up).Row does not work for me. I get "Run-time error '1004': Application-defined or object-defined error". Is it something basic that I'm not...
  14. C

    Formula going way past Final Row

    Hi ALL, I am having difficulty wtih an if statement going about 100 rows paste the final row, it seems each time i run the macro it goes further paste the last. Which makes me feel like I have a double of something, any help would be great, below is he current code. code: FinalRow =...

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