Tag: 身份

合并excel表单和工作簿,识别表单和woorkbook源代码VBA

我有多个工作簿和工作表具有相同的信息,我一直在试图合并所有这些文件标识信息源(工作表 – 工作簿)。 我已经使用这个代码,但它只是合并单元格,我不能识别信息源(工作表 – 工作簿) Sub merge() Application.DisplayAlerts = False For Each hoja In ActiveWorkbook.Sheets If hoja.Name = "todas" Then hoja.Delete Next Sheets.Add before:=Sheets(1) ActiveSheet.Name = "todas" For x = 2 To Sheets.Count Sheets(x).Select Range("a1:o" & Range("a650000").End(xlUp).Row).Copy Sheets("todas").Range("a650000").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlValues Next Sheets("todas").Select End Sub 这是我必须合并的图书馆之一:

Excel无法访问IIS7和Windows Server 2008 R2(64位)的文件

我有一个Web项目(.NET 4),需要访问一个Excel文件,但它结束了以下错误信息: Error occurred during file generation.Microsoft Excel cannot access the file 'D:\xx\xx\abc.xls'. There are several possible reasons: • The file name or path does not exist. (Actually it is there) • The file is being used by another program. (It can not happen) • The workbook you are trying to save has the same […]