English 中文(简体)
a. 向新工作手册/表格提供某些电池
原标题:Copy certain cells to a new workbook/sheet

我对以前的问题进行了彻底的调查,但我看不到我所期望的。

Daily I have to download a file from the internet, the columns of which are always the same, but the values (in all but the title row) are the different. There are many columns which I don t need to pay attention to.

I d like to be able to create a macro that I will link to a button in Excel that will: Take certain columns from one sheet, and paste them to a new blank sheet or workbook.

我在搜索时发现的大多数结果似乎含有以下规则:“如果是”,或“何时......”,等等。

我只是想做一些事情: Column: C, N, AC, AG, AZ, others, and Paste them to栏A, B, C, D, etc. in another blankmap.

问题回答

幸运的是,起草守则就是这样。 只是制造了一种 but子和一种点击方法,然后将这种方法放在其中:

Sheets("Sheet3").Select
Columns("A:A").Select
Selection.Copy
Sheets("Sheet4").Select
Range("A1").Select
ActiveSheet.Paste

你们需要为每个栏目做这一垫子,但如果你为用户建立一个冰层,则可以在代码上做到。





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签