2013-05-10 49 views
0

我有1000行與100列。如何選擇不相鄰的特定行的某些單元格?

而且我想選擇2nd行與6,14,56,37,87列?

而且我想選擇5th行與3,5,9,24列。

請推薦一種不同的方法來解決這個問題? 並用一個公式?

+2

in VBA?一旦他們被選中,你想做什麼? – durron597 2013-05-10 16:28:46

+1

選擇一個單元格,滾動到下一個單元格,按住Ctrl並單擊下一個單元格,然後繼續這樣操作直至獲得所有內容?你需要的細胞對我來說似乎是隨機的... – Jerry 2013-05-10 16:40:37

回答

0

您可以在公式欄的左端使用名稱框中,教程一步檢查此鏈接了一步

http://www.dummies.com/how-to/content/how-to-select-cells-in-excel-2010.html 

http://office.microsoft.com/en-us/excel-help/select-specific-cells-or-ranges-HP010342886.aspx 
0

如果選擇VBA作爲@ durron597說,它會是這樣的:

'Specific row 
Dim row As Integer 
row = 2 

'Specific columns (I use the letters) 
Dim col As String 
col = "A" & row & ",C" & row & ",E" & row & ",F" & row & ",I" & row 

'Selection of the cells for the example 
Range(col).Select 
相關問題