Solved

How can I select the 101 cell from my excel sheet

Posted on 2016-08-13
7
36 Views
Last Modified: 2016-08-13
How can I select the 101 cell from my excel sheet and repeat the same thing for the next 100 cell. My cells are selected within the colored area in the attached file.

Regards,

Dallag
File1.xlsx
0
Comment
Question by:dallagmm
  • 4
  • 3
7 Comments
 
LVL 29

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41754947
Please try this....
In the attached, click the button "Click To Select" to run the code. The code will prompt you to input the occurrence of 101th cell you want to select. So if you want to select the first occurrence, input 1 in the inputbox and click OK. So you can keep on selecting the 101th cell by inputting it's occurrence.

If you have any issue with downloading and opening the file, first download ans save the file on your system and then open it.

Sub Select101thCell()
Dim rng As Range
Dim n As Integer
n = Application.InputBox("Which occurrence of 101th cell you want to select? (e.g. 1,2,3...)", Type:=1)
Set rng = Range("A:F")
If n <> 0 Then rng.Cells(101 * n).Select
End Sub

Open in new window

File1.xlsm
0
 

Author Comment

by:dallagmm
ID: 41755193
Dear Subodh Tiwari,

I need to save that number of cells in another column. Could you help in this?

Regards,

Dallag
0
 
LVL 29

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41755194
Hi Dallag,

Not sure about your requirement. Would you please elaborate each step you would like to automate?
And if possible, please upload another sample workbook with the desired output mocked up manually.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:dallagmm
ID: 41755195
Dear Subodh Tiwari,

I want just to save the numbers in a list after I select them. I created sheet2 and I put the cells selected in the attached file. I number of cells depend on the range of the data.

Regards,

Dallag
File2.xlsm
0
 
LVL 29

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41755198
Okay please refer to the attached and click the button to run the code.
File2.xlsm
0
 

Author Closing Comment

by:dallagmm
ID: 41755199
Thank you
0
 
LVL 29

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41755200
You're welcome Dallag! Glad to help.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question