我想打开一个.btw格式文件。
这是我的密码。
Sub Printlabel()
Dim printdata As Workbook
Dim history As Workbook
Dim btApp As BarTender.Application
Dim btFormat As BarTender.Format
Dim btSubString As BarTender.SubString
Set btApp = New BarTender.Application
Set btFormat = btApp.Formats.Open("D:\test\test.btw")
btApp.Visible = False
btFormat.SetNamedSubStringValue "Part", Filename
'Select the data source
btSubString = btFormat.NamedSubStrings.GetSubString(1)
'Show the data source's name
MessageBox.Show (btSubString.Name)
End Sub我所犯的错误:
编译错误: 未定义用户定义类型
发布于 2018-08-20 09:54:22
https://stackoverflow.com/questions/51927570
复制相似问题