vba
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » VBA

VBA

resolvedResolved · Medium Priority · Version 2003

replyReply Fri 15 May 2009, 16:34Delegate Sotirios said...

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.

For upcoming training course dates see: Pricing & availability

replyReply Mon 18 May 2009, 09:02Trainer Stephen said...

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

replyReply Mon 18 May 2009, 21:27Delegate Sotirios said...

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.

 

Please browse our web site to find out more about
ms access training and other Microsoft training courses.

Access tip:

Create calculated fields that work out your age

You can uset eh year function to work out the year from NOW function and then subtract it with your date of birth type field

Age=Year(Now( ))-Year([DoB])

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard