Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Bakir Farooq   on Jan 10 In MS Office Category.

  
Question Answered By: Edwin Chavez   on Jan 10

Sounds like you need to clear out the data  on the form  after the
row has been written. Take a look at this...

If r > 1 And r <= LastRow Then

Cells(r, 1) = strProtocolID
Cells(r, 2) = txtSiteID.Text
Cells(r, 3) = StrConv(txtPIFirstName, vbProperCase)
Cells(r, 4) = StrConv(txtPILastName, vbProperCase)
Cells(r, 5) = txtPIPhoneNumber
Cells(r, 6) = txtPIFaxNumber
Cells(r, 7) = txtPIEmailAddress
Cells(r, 8) = txtMaxSiteScreenAmount
Cells(r, 9) = txtMaxSiteRandAmount

DisableSave

'Everything was good, reset the form

Me.strProtocolID = ""
Me.txtSiteID.Text = ""
Me.txtPIFirstName = ""
Me.txtPILastName = ""
Me.txtPIPhoneNumber = ""
Me.txtPIFaxNumber = ""
txtPIEmailAddress = ""
txtMaxSiteScreenAmount = ""
txtMaxSiteRandAmount = ""



Else
MsgBox "Invalid row  number"

End If

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Excel form Or get search suggestion and latest updates.


Tagged: