- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'd like to set the category of an Excel file automatically related to the folder where it will be created (or it is stored).
e.g.
I have
-folder1
-folder2
-folder3
for each folder I have a catogory (e.g. categoryf1, categoryf2, categoryf3)
creating a new file in folder1 should set the category to categoryf1.
using
if ($_fl1 -eq "folder1")
{
$Prop[_Category].Value = "categoryf1"
}
within the function InitializeWindow
will stop the functionality (no UI window pops up).
in the xaml-file I've added
<TextBox x:Name="txtCategory2" Text="{Binding Prop[_Category].Value}"/>
I've removed the default ComboBox (which is part of the file.xaml) for selecting the category.
I hope it is just a little thing to modify - many thanks for your help
BR
Rainer
Solved! Go to Solution.