PDA

View Full Version : set label value equal to file name



ironj32
02-28-2007, 12:05 PM
anyone know how to set the value of a label equal to the workbook name?

me.lblSurveyName.value = ?

for example: "D:\DocumentsAndSettings\JLFOGEL\Desktop\"BIGSTORE.xls"

the label work display as BIGSTORE.

thanks!

Charlize
02-28-2007, 12:22 PM
You said it yourself ...me.lblSurveyName.Caption = ThisWorkbook.NameCharlize

ironj32
02-28-2007, 01:35 PM
lol. thanks!