hi all,
just wondering on how to build a function, basicly i want the function to
test is activeworkbook.haspassword is true of false, then if the function is true, the
returned message should be "This Book Is Protected", and if false "This Book in non Protected".
and to use the function like so, if i have a userform4 with a textbox2 on it,
i want to type Public sub Command1_click()
CheckBookPass (textbox2.text)
and the returnes string in Textbox2.text would be This Book Is Protected is true. on so on,
thank you
Bookmarks