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.
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.
Replace this
WithPlease Login or Register to view this content.
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
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.
Maybe I do something wrong. Could you please tell me what are exactly the steps I must follow?Please Login or Register to view this content.
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?
Nothing happens! No error, no nothing.
I'm expecting the worksheet to get open and mark the first blank cell in column B
Surely it should throw some errors
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.
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
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)
Is this what you wish or not? Code will find last cell with contents in column B and select cell below.
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.
Does table have formulas in column B? Why do you have empty rows in the table at all?
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
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.
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.
Or
Please Login or Register to view this content.
The genius Bernie Deitrick solved the problem again!
Here is the solution:
Please Login or Register to view this content.
This is what Sixthsense said before.
Also I think you must read the rules for cross-posting.
So, the perfect code for this problem (provided by the genius Bernie Deitrick) is:
Please Login or Register to view this content.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks