Thanks for the information guys but im lost now. Maybe my question should be:
Is possible to lock a cell down so a user can only input an 11 digit number sometimes including a zero at the beginning not allowing any special characters spaces just numbers ie: 01234567891 or 19876543211
Thanks
Hi All,
I' trying to set a cell so the user can only input a 11 digit number that can start with a zero and contain no spaces.
this is what I have thank for any assistance
this is set via the data validation
=AND(ISNUMBER(a1),LEN(a1)=11)
Hi Guys,
I need to remove blanks from a variable range e4:g - variable ive managed to replace the blanks but only on a fixed range.
here is what I have.
Private Sub cmdClean_Click()
Const sBad As String = "`!@#$;^()_-=+{}&[]\|;:'"",.<>/?"
Dim cell As Range
Dim s...
just to move to the next occurrence ive tidied the code a little.
Private Sub cmdFind_Click()
Dim totRows As Long, i As Long
totRows = Worksheets("SUSPENSE ACCOUNT").Range("C1").CurrentRegion.Rows.Count
If txtAmount = "" Then
MsgBox "Enter Search Amount"
End If
For i = 2 To totRows
If...
Sorry for the code it was formatted when I copied it on here.
the runtime error happens after I added the search criteria into the txtAmount on the userform and click the cmdfind when I debug it stops here
totRows = Worksheets("Sheet2").Range("C1").CurrentRegion.Rows.Count with the msg...
Hi guys im trying to create a searchable user form but have come unstuck.
When I enter the search details in txtAmount - my search box; hit the find btn, I get a runtime error 9 Subscript out of range.
This is my code any help would be cool.
Private Sub cmdFind_Click()
Dim totRows As Long, i...
Hi guys I returning to this after 15 yrs out and my memory is poor. So any help would be fantastic.
I have a button to select a range and print.
Private Sub cmdbtnPrint_Click()
ActiveSheet.Select
Range("A3:F21").Select
ActiveSheet.PageSetup.PrintArea = "A3:F21"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.