由买买提看人间百态

topics

全部话题 - 话题: fromw
(共0页)
H****8
发帖数: 2056
1
来自主题: Classified版 - 交换1个东部canon mx432.
I will ship fromw est, thanks.
H****8
发帖数: 2056
2
来自主题: FleaMarket版 - 交换1个东部canon mx432.
I will ship fromw est, thanks.
p********a
发帖数: 5352
3
*-> Macro to Combine Worksheets;
%macro many2one(in=,out=);
options noxwait;
x erase "&out";
options xwait;
data _null_;
file "c:\temp\class.vbs";
put 'Set XL = CreateObject("Excel.Application")' /
'XL.Visible=True';
%let n=1;
%let from=%scan(&in,&n," ");
%do %while("&from" ne "");
%let fromwb=%scan(&from,1,"!");
%let fromws=%scan(&from,2,"!");
put "XL.Workbooks.Open ""&fromwb""";
%if &n=1 %then
put "XL.ActiveWorkbook.SaveAs ""&out"", -4143"%str(;);
%else %do;
put "XL.Workbooks(""%scan(&fromwb,-
(共0页)