Adding information

B

bach

I have created a form which the user adds data to, on a button click
procedure I want the data to be check and then added to a spreadsheet.

I dont know how I would go about placing this data in the write
spreadsheet, in the ocrrect place. I would need to place the data at
the end of the data already there. So i need to check where the last
entry is write ??

also i am having issues with

Sheet("wksmain").Select

where wksmain is the name of the sheet.

any ideas would be greatful for any help.
 
B

bach

I have used the one for creating a user form contextures thanks.

I need to check that the Id given to a member is unique and no
currently on the database How would I go about checking this
 
D

Dave Peterson

Before you add the record, check to see if it's in that range:

if application.countif(yourrangehere, yourvaluehere) > 0 then
'it's already in that range
else
'do the add!
end if
 
D

Dave Peterson

If the range is extremely large, =countif() can be slow.

if isnumber(application.match(yourvaluehere, yourrangehere,0)) then
'it's already there
else
'do the add
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top