For those interested, this solved part of my problem. I pieced together pieces from some of the code theDude gave me in a different post.
This code creates variables for each user input on the "Save" form. Then, when they click the save button, the form is saved with those inputs.
Private Sub CommandButton2_Click()Dim N, A, M, Y
N = TextBox1.Value
A = Trim(OpArea.Value)
M = Trim(Month.Value)
Y = Trim(Year.Value)
ActiveWorkbook.SaveAs N & A & M & Y
End Sub
This code fills in the possible data selections for each combobox, giving the user a list of choices to select. At the end of the code, a label on the form displays the default path where the file will be saved (from DominicB post)
Private Sub UserForm_Activate()With OpArea
.AddItem "AnadarkoOK"
.AddItem "AnadarkoTX"
.AddItem "ETXSouth"
.AddItem "ETXNorth"
.AddItem "Gloria"
.AddItem "NTXEast"
.AddItem "NTXWest"
.AddItem "MidLa"
.AddItem "Mississippi"
With Month
.AddItem "January"
.AddItem "February"
.AddItem "March"
.AddItem "April"
.AddItem "May"
.AddItem "June"
.AddItem "July"
.AddItem "August"
.AddItem "September"
.AddItem "October"
.AddItem "November"
.AddItem "December"
With Year
.AddItem "2005"
.AddItem "2006"
.AddItem "2007"
.AddItem "2008"
.AddItem "2009"
.AddItem "2010"
.AddItem "2011"
.AddItem "2012"
.AddItem "2013"
.AddItem "2014"
.AddItem "2015"
.AddItem "2016"
.AddItem "2017"
.AddItem "2018"
.AddItem "2019"
.AddItem "2020"
End With
End With
End With
SaveLocationLabel.Caption = Application.DefaultFilePath
End Sub
Bookmarks