Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Next Available line in table

Status
Not open for further replies.

BSando

Technical User
Jun 29, 2003
73
0
0
AU
Hi all

I have a spreadsheet set up as a form where the user selects a site location and the other fields (i.e Address) auto populate based on a table I have on a back sheet.
This works fine. But if the user needs to add a new site and details I want to have a user form where the data is entered in the next line of the table. I have not created the form yet. I am trying to understand how I can do it first.
So for example my table is on sheet 3 and looks like the below
Name Number Address Suburb State Postcode Phonenumber


Any Help would be appreciated.

Thanks in Advance


Some people make things happen, some watch while things happen, and some wonder 'What happened?'
 




Hi,

Check out the CurrentRegion property...
Code:
lNextRow = Sheet3.[A1].CurrentRegion.Rows.Count + 1
assuming that your heading starts in A1.

Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 
Skip,

Thanks for your help

Some people make things happen, some watch while things happen, and some wonder 'What happened?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top