Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba

ResolvedVersion 2003

Sotirios has attended:
Excel VBA Intro Intermediate course

VBA

if you are using an input box to capture data how do you reference the entry to the next available cell available in a worksheet.

RE: VBA

Hi Sotirios

Thank you for your question

I am assuming that you have a list and you wish to find the next blank row. Assuming that cell A1 is within the list then the following will allow you to identify the last row.

intVariable = range("A1").currentregion. rows.count+1


You can then reference that row/cell with

cells(intvariable,1) = value


Hope this is useful

regards

Stephen

RE: VBA

thanks this is very useful. when this finds that cell entering data is quite simple but I have got stuck trying to compare that value to the last entry - that must always be one more than the previous one.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Remove spaces in a table

If you have a table that has too many space marks littered around, you can create a update query and use the trim function to get rid of any excess space marks

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.