Solved

How can I select the 101 cell from my excel sheet

Posted on 2016-08-13
7
34 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 28

Expert Comment

by:Subodh Tiwari (Neeraj)
Comment Utility
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
Comment Utility
Dear Subodh Tiwari,

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

Regards,

Dallag
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:dallagmm
Comment Utility
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 28

Accepted Solution

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

Author Closing Comment

by:dallagmm
Comment Utility
Thank you
0
 
LVL 28

Expert Comment

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now