我想要一个VBA代码来打开一个名称每个月都在变化的文件
struct node * new_node; // <<< You probably want new_node = new node;
if (head == NULL){ // <<< You definitely want *head here!
new_node->data=data; // <<< This variable is uninitialised
new_node->next=*head; // <<< You know this is NULL - the if said so
*head=new_node;
任何人都可以提供帮助
答案 0 :(得分:3)
Workbooks.Open Filename:= _
"S:\Credit_Risk\MIS\Consolidated Customer profile Macro\Securities\Enterprise pending cases as at end of " & Format(Date, "MMM.YYYY") & ".xls"
答案 1 :(得分:0)
如果将文件放在仅包含文件的子目录中,则可以使用以下命令打开它:
ChDir "S:\Credit_Risk\MIS\Consolidated Customer profile Macro\Securities\myFile\"
myFiles= Dir("*.*")
While myFiles<> ""
Workbooks.Open myFiles