+ Reply to Thread
Results 1 to 21 of 21

Open workbook with the first blank row in a worksheet

  1. #1
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Open workbook with the first blank row in a worksheet

    Hello everybody!

    When I open my workbook, I'd like to go at the first empty row of the worksheet.
    I've tried the below code, but doesn't work. Any ideas? Thanks in advance!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Open workbook with the first blank row in a worksheet

    Replace this

    Please Login or Register  to view this content.
    With

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    Thank you for the prompt answer!

    I did what you recommended, but it doesn't work. I pressed ALT+F11 and I inserted the code in the worksheet that I need to be opened.

    Please Login or Register  to view this content.
    Maybe I do something wrong. Could you please tell me what are exactly the steps I must follow?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Open workbook with the first blank row in a worksheet

    What happens while running the code? Is it showing any error? If so, then click debug and check and confirm in which line the error pops up?

  5. #5
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    Nothing happens! No error, no nothing.
    I'm expecting the worksheet to get open and mark the first blank cell in column B

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Open workbook with the first blank row in a worksheet

    Surely it should throw some errors

  7. #7
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    In the same sheet is running another code (see the image!). Could this be a problem?

    untitled.PNG
    Last edited by boboivan; 02-13-2014 at 07:00 AM.

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Open workbook with the first blank row in a worksheet

    This code must be in ThisWorkbook module not worksheet module and must be:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  9. #9
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    Thank you so much Izandol!

    In the worksheet a have a table with 3000 rows.
    The code opens the sheet with the first empty row outside of the table (row 3001)

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Open workbook with the first blank row in a worksheet

    Is this what you wish or not? Code will find last cell with contents in column B and select cell below.

  11. #11
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    No, this is what it is and doesn't help me at all to open the sheet with the row 3001. I need to open the sheet with the first empty row in the table.

  12. #12
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Open workbook with the first blank row in a worksheet

    Does table have formulas in column B? Why do you have empty rows in the table at all?

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Open workbook with the first blank row in a worksheet

    Quote Originally Posted by boboivan View Post
    I need to open the sheet with the first empty row in the table.
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  14. #14
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    The column B has a drop down list created with Data Validation option. I have many formulas in other columns and I needed to preset the number of rows.
    Last edited by boboivan; 02-13-2014 at 07:40 AM.

  15. #15
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    Quote Originally Posted by :) Sixthsense :) View Post
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    A sample as a image, or as a XLfile?

  16. #16
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Open workbook with the first blank row in a worksheet

    Quote Originally Posted by boboivan View Post
    A sample as a image, or as a XLfile?
    We never ask for image, since we can't work with it

  17. #17
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Open workbook with the first blank row in a worksheet

    Why do you need preset rows? Table is designed to expand when you will add new data.

    You may try:
    Please Login or Register  to view this content.

  18. #18
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Open workbook with the first blank row in a worksheet

    Or

    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    The genius Bernie Deitrick solved the problem again!

    Here is the solution:

    Please Login or Register  to view this content.

  20. #20
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Open workbook with the first blank row in a worksheet

    This is what Sixthsense said before.

    Also I think you must read the rules for cross-posting.

  21. #21
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    So, the perfect code for this problem (provided by the genius Bernie Deitrick) is:

    Please Login or Register  to view this content.

  22. #22
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    Quote Originally Posted by :) Sixthsense :) View Post
    Or

    Please Login or Register  to view this content.
    Thank you so much! Indeed, this is the solution.
    I don't know what happend with the thread, but I couldn't see any answer from you guys.

  23. #23
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Open workbook with the first blank row in a worksheet

    Quote Originally Posted by Izandol View Post
    This is what Sixthsense said before.

    Also I think you must read the rules for cross-posting.
    Thank you too for being so kind to help me and provided a very good solution.
    As I couldn't see any answer from you, I asked somebody else via private messages to help me with the matter.
    I didn't know also of the cross-posting problem. I've read the forum rules and I'm sorry if I did something wrong. I'm quite new on the forum and I admit that I use it a bit clumsy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel does not open with blank worksheet
    By BigFurryMonster in forum Excel General
    Replies: 3
    Last Post: 07-11-2013, 11:59 AM
  2. [SOLVED] Copying worksheet from another open workbook using variables, paste to active workbook
    By sanpedro_nz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2012, 08:25 AM
  3. When I open an existing workbook, a blank sheet opens as well
    By notoriouscwe in forum Excel General
    Replies: 1
    Last Post: 11-23-2010, 05:55 PM
  4. Trying to open worksheet to 1st blank row
    By windme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2008, 12:02 AM
  5. [SOLVED] Open Blank Workbook?
    By rreneerob in forum Excel General
    Replies: 0
    Last Post: 05-25-2005, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1