Code/VBA pls

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
We have the following sheet

Excel 2010 32 bit
A
B
C
D
E
F
1
1​
224​
205​
218​
230​
218​
2
2​
112​
106​
100​
94​
105​
3
3​
51​
58​
59​
46​
49​
4
4​
22​
24​
22​
27​
27​
5
5​
11​
12​
12​
12​
9​
6
6​
8​
10​
10​
8​
12​
7
7​
2​
2​
2​
0​
1​
8
8​
0​
3​
1​
3​
3​
9
9​
1​
1​
10
10​
2​
11
11​
12
12​
13
13​
14
14​
15
15​
16
16​
Sheet: Sheet1

now we want to check the cells A1:F16, which coloumn was maximum entry (i mean which cell was filled more then others), after finding maximum filled cell it will remove the data from that cells in cell A

Result are
Excel 2010 32 bit
A
B
C
D
E
F
1
1​
224​
205​
218​
230​
218​
2
2​
112​
106​
100​
94​
105​
3
3​
51​
58​
59​
46​
49​
4
4​
22​
24​
22​
27​
27​
5
5​
11​
12​
12​
12​
9​
6
6​
8​
10​
10​
8​
12​
7
7​
2​
2​
2​
0​
1​
8
8​
0​
3​
1​
3​
3​
9
9​
1​
1​
10
10​
2​
Sheet: Sheet1

help pls
 
i dont think so, when we run the code, nothing will work
"nothing will work" is not an informative reply. Can you answer the questions I posed in post#9?

Also, are you certain the last filled cell in Cols A:E is in col A? Could there be formula cells in cols B:E that are returning ""?
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
you are right, "nothing will work" is not an informative reply.

but i dont know why some times the code work or some time not,

we just need to remove the filled text from column A, as in B1:E36, last maximum filled data is B22

so all the data will be remove after row 22
 
Upvote 0
you are right, "nothing will work" is not an informative reply.

but i dont know why some times the code work or some time not,

we just need to remove the filled text from column A, as in B1:E36, last maximum filled data is B22

so all the data will be remove after row 22
Sorry, I can't see why the code won't work for you and you haven't answered some of the questions I asked which might help to diagnose the problem.
 
Upvote 0
Thanks for the notice on my query JoeMo Ji

we will try to sort out self and if not get the answer, ask here again

thanks for your help
 
Upvote 0
@Vishaal
I have rerun my code on your latest and it works as designed. If you are still having issues, then I suggest you upload a sample workbook to a third party site, ie. Dropbox.com or Box.net for example and let us analyze your issues for you.

Alan
 
Upvote 0
Thanks for the attention on my query alansidman Ji


thanks for your help and time......

i will share the sheet, if find the problem again and again
 
Upvote 0

Forum statistics

Threads
1,215,337
Messages
6,124,340
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top