Re: $$Excel-Macros$$ VBA code for delete duplicate rows

2015-10-22 Thread mani bolla
Hi paul,

i tried , but i am looking for a code, so i can customize , if i recorded
with macro i may get hard code values.

Request you to provide code.

Regards
Mani

On Thu, Oct 22, 2015 at 11:28 PM, Paul Schreiner 
wrote:

> Have you tried recording a macro and then using "Remove Duplicates" from
> the Data tab?
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you
> can,In all the places you can,At all the times you can,To all the people
> you can,As long as ever you can.” - John Wesley*
> -
>
> --
> *From:* mani bolla 
> *To:* MS EXCEL AND VBA MACROS 
> *Sent:* Thursday, October 22, 2015 1:47 PM
> *Subject:* $$Excel-Macros$$ VBA code for delete duplicate rows
>
> Hi All,
>
> Request you to provide VBA code for delete duplicate rows
>
>  Data before delete duplicate rows
>
> Name Subject Marks
>
> Ravi Maths  90
>
> Rahul   Physics   85
>
> Raju Science   75
>
> Raju Science75
>
> Ravi Maths   90
>
> Data after deleting duplicates
>
> Name Subject Marks
>
> Ravi Maths  90
>
> Rahul   Physics   85
>
> Raju Science   75
>
> Request you to provide VBA code. Thanks in advance,
>
> Regards
> Mani
>
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/excel-macros/FMARUhkKGNo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL 

$$Excel-Macros$$ Finding maximum combinations

2015-10-22 Thread srav anthi
Hi every one I am new to this form and new to excel as well...
I need some help hopping some one can help me out
If a column lets say "A" has numbers ranging from 200 to 1200 I want to 
find out if any two or three combinations of numbers can find sum of 1200 
or under... this is to maximize the sheet which is 1200 lets say if I have 
numbers like
253256262265272280285290290300300302320321324325325325330340341345347352354
355363370375375380385396406412420426428431431438440443450450454455455468470
479484490490490490493506506518540558567569572591599599600600600600600600600
601615615620621621625635638651652665667677687687694700710713716721722727742
75075075075075680780800810811813822822825835835836838848850850850850850
85085085085085085085087087087688088892896900915930938950950951957960960
96096196497197599510001010101010101010101010101012102110401048106510691082
1085108510991104111011161140114011531159116311761179120012001200
I need to find as much as higher number as possible as off now I am doing 
manually any help is greatly appreciated thank you 

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Re: Getting Run time error for macro

2015-10-22 Thread Pravin Gunjal
Can anyone help me on this issue plz.
On Oct 21, 2015 3:26 PM, "Pravin Gunjal"  wrote:

> Hi Mandeep
>
> The code you have replaced in this mail​ has to be replaced in other
> sheets also of the same file.. file is attached for your immediate
> reference.
>
> Pl help me out on this.
>
> Thanks,
> Pravin Gunjal.
>
> On Oct 20, 2015 4:35 PM, "Mandeep Baluja" <
> ​​
> ​​
> rockerna...@gmail.com> wrote:
>
>> Hi Praveen,
>>
>> Welcome,I am sorry but Please elaborate your query Modify in what sense
>> and for all sheets means you have the same code in all sheets what kind of
>> modification you're looking for whether it is automated or it is manual.
>>
>> Regards,
>> Mandeep Baluja
>>
>>
>>
>> On Tuesday, October 20, 2015 at 4:20:14 PM UTC+5:30, Pravin Gunjal wrote:
>>>
>>> Dear Mandeep
>>> Thank you so much.. it works fantastic.
>>>
>>> Can you tell me one more thing, how to modify the vba code in all
>>> sheets...
>>>
>>> Regards,
>>> Pravin Gunjal.
>>> On Oct 20, 2015 2:47 PM, "Mandeep Baluja"  wrote:
>>>
 check this out !!




 Private Sub Worksheet_Change(ByVal Target As Excel.Range)

 If Not Application.Intersect(Target, Range("n4:n100")) Is Nothing
 Then
 For Each cell In Target
 If cell.Value <> "" Then
 cell.Offset(0, 1).Value = Application.UserName
 End If
 Next
 End If

 End Sub

 Regards,
 Mandeep baluja
 https://www.facebook.com/groups/825221420889809/






 --
 Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
 It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
 https://www.facebook.com/discussexcel

 FORUM RULES

 1) Use concise, accurate thread titles. Poor thread titles, like Please
 Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
 will not get quick attention or may not be answered.
 2) Don't post a question in the thread of another member.
 3) Don't post questions regarding breaking or bypassing any security
 measure.
 4) Acknowledge the responses you receive, good or bad.
 5) Jobs posting is not allowed.
 6) Sharing copyrighted material and their links is not allowed.

 NOTE : Don't ever post confidential data in a workbook. Forum owners
 and members are not responsible for any loss.
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups "MS EXCEL AND VBA MACROS" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/excel-macros/IAYAJFr4fQ8/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 excel-macros...@googlegroups.com.
 To post to this group, send email to excel-...@googlegroups.com.
 Visit this group at http://groups.google.com/group/excel-macros.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>> https://www.facebook.com/discussexcel
>>
>> FORUM RULES
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/excel-macros/IAYAJFr4fQ8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> excel-macros+unsubscr...@googlegroups.com.
>> To post to this group, send email to excel-macros@googlegroups.com.
>> Visit this group at http://groups.google.com/group/excel-macros.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge 

Re: $$Excel-Macros$$ VBA code for delete duplicate rows

2015-10-22 Thread Paul Schreiner
Have you tried recording a macro and then using "Remove Duplicates" from the 
Data tab?
Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: mani bolla 
 To: MS EXCEL AND VBA MACROS  
 Sent: Thursday, October 22, 2015 1:47 PM
 Subject: $$Excel-Macros$$ VBA code for delete duplicate rows
   
Hi All,
Request you to provide VBA code for delete duplicate rows
 Data before delete duplicate rows

Name     Subject     Marks
Ravi         Maths      90
Rahul       Physics   85
Raju         Science   75
Raju         Science    75
Ravi         Maths       90
Data after deleting duplicates 
Name     Subject     Marks
Ravi         Maths      90
Rahul       Physics   85
Raju         Science   75
Request you to provide VBA code. Thanks in advance,
RegardsMani

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ VBA code for delete duplicate rows

2015-10-22 Thread Paul Schreiner
yes...that's how it works.
You record a macro in which you go through the steps.You then customize the 
hard-coded values to use variables or values that will work in future 
executions of the macro.

I recorded a macro that deleted duplicates from 3 columns and 170,702 rows.
It gave me:    ActiveSheet.Range("$A$1:$C$170702").RemoveDuplicates _   
 Columns:=Array(1, 2, 3), _
Header:=xlYes
So, you can customize it in whatever 
wayPaul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: mani bolla 
 To: excel-macros@googlegroups.com 
 Sent: Thursday, October 22, 2015 2:03 PM
 Subject: Re: $$Excel-Macros$$ VBA code for delete duplicate rows
   
Hi paul,
i tried , but i am looking for a code, so i can customize , if i recorded with 
macro i may get hard code values. 
Request you to provide code.
RegardsMani
On Thu, Oct 22, 2015 at 11:28 PM, Paul Schreiner  wrote:

Have you tried recording a macro and then using "Remove Duplicates" from the 
Data tab?
Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: mani bolla 
 To: MS EXCEL AND VBA MACROS  
 Sent: Thursday, October 22, 2015 1:47 PM
 Subject: $$Excel-Macros$$ VBA code for delete duplicate rows
   
Hi All,
Request you to provide VBA code for delete duplicate rows
 Data before delete duplicate rows

Name     Subject     Marks
Ravi         Maths      90
Rahul       Physics   85
Raju         Science   75
Raju         Science    75
Ravi         Maths       90
Data after deleting duplicates 
Name     Subject     Marks
Ravi         Maths      90
Rahul       Physics   85
Raju         Science   75
Request you to provide VBA code. Thanks in advance,
RegardsMani

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   
 -- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to a topic in the Google 
Groups "MS EXCEL AND VBA MACROS" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/excel-macros/FMARUhkKGNo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
excel-macros+unsubscr...@googlegroups.com.


To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 

Re: $$Excel-Macros$$ Finding maximum combinations

2015-10-22 Thread srav anthi
Hi Paul

Firstly thank you for taking time out
Yes I am new to excel and never used macros but I am happy to use Macro and 
other issue is I don't know how to write VBA codes...
Steps I am following manually is sort data highest to lowest and pair 
lowest number and highest number 360+800=1160, 500+700=1200 and so on trial 
and error. End result should show me which numbers I need to pair to get 
anything in between 0 to 1200

On Thursday, October 22, 2015 at 10:54:59 PM UTC+11, Paul Schreiner wrote:
>
> What kind of solution are you looking for?
> You said you're new to Excel, so does that mean you're not comfortable 
> working with VBA macro programming?
>
> You said you're doing it "manually".
> How?
> what steps do you go through?
> What do you want the end result to look like?
>
>
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you 
> can,In all the places you can,At all the times you can,To all the people 
> you can,As long as ever you can.” - John Wesley*
> -
>
> --
> *From:* srav anthi 
> *To:* MS EXCEL AND VBA MACROS  
> *Sent:* Thursday, October 22, 2015 3:39 AM
> *Subject:* $$Excel-Macros$$ Finding maximum combinations
>
> Hi every one I am new to this form and new to excel as well...
> I need some help hopping some one can help me out
> If a column lets say "A" has numbers ranging from 200 to 1200 I want to 
> find out if any two or three combinations of numbers can find sum of 1200 
> or under... this is to maximize the sheet which is 1200 lets say if I have 
> numbers like
> 253256262265272280285290290300300302320321324325325325330340341345347352
> 354355363370375375380385396406412420426428431431438440443450450454455455
> 468470479484490490490490493506506518540558567569572591599599600600600600
> 600600600601615615620621621625635638651652665667677687687694700710713716
> 72172272774275075075075075680780800810811813822822825835835836838848
> 85085085085085085085085085085085085087087087688088892896900915930938
> 950950951957960960960961964971975995100010101010101010101010101010121021
> 104010481065106910821085108510991104111011161140114011531159116311761179
> 120012001200
> I need to find as much as higher number as possible as off now I am doing 
> manually any help is greatly appreciated thank you 
> -- 
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
> https://www.facebook.com/discussexcel
>  
> FORUM RULES
>  
> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security 
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>  
> NOTE : Don't ever post confidential data in a workbook. Forum owners and 
> members are not responsible for any loss.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to excel-macros...@googlegroups.com .
> To post to this group, send email to excel-...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit 

Re: $$Excel-Macros$$ Finding maximum combinations

2015-10-22 Thread srav anthi
Ideally if I should be able to see in a different column which two or three 
numbers to combine to maximize the output. Result should show me which 
numbers I need to pair to get anything in between 0 to 1200.
 A   B
870 1
321 1
354 2
836 2
355 3
835 3
345 4
412 4
428 4
896 5
280 5
341 6
380 6
406 6
995 7
960 8
253 9
320 9
Thank you once again

On Thursday, October 22, 2015 at 10:54:59 PM UTC+11, Paul Schreiner wrote:
>
> What kind of solution are you looking for?
> You said you're new to Excel, so does that mean you're not comfortable 
> working with VBA macro programming?
>
> You said you're doing it "manually".
> How?
> what steps do you go through?
> What do you want the end result to look like?
>
>
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you 
> can,In all the places you can,At all the times you can,To all the people 
> you can,As long as ever you can.” - John Wesley*
> -
>
> --
> *From:* srav anthi 
> *To:* MS EXCEL AND VBA MACROS  
> *Sent:* Thursday, October 22, 2015 3:39 AM
> *Subject:* $$Excel-Macros$$ Finding maximum combinations
>
> Hi every one I am new to this form and new to excel as well...
> I need some help hopping some one can help me out
> If a column lets say "A" has numbers ranging from 200 to 1200 I want to 
> find out if any two or three combinations of numbers can find sum of 1200 
> or under... this is to maximize the sheet which is 1200 lets say if I have 
> numbers like
> 253256262265272280285290290300300302320321324325325325330340341345347352
> 354355363370375375380385396406412420426428431431438440443450450454455455
> 468470479484490490490490493506506518540558567569572591599599600600600600
> 600600600601615615620621621625635638651652665667677687687694700710713716
> 72172272774275075075075075680780800810811813822822825835835836838848
> 85085085085085085085085085085085085087087087688088892896900915930938
> 950950951957960960960961964971975995100010101010101010101010101010121021
> 104010481065106910821085108510991104111011161140114011531159116311761179
> 120012001200
> I need to find as much as higher number as possible as off now I am doing 
> manually any help is greatly appreciated thank you 
> -- 
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
> https://www.facebook.com/discussexcel
>  
> FORUM RULES
>  
> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security 
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>  
> NOTE : Don't ever post confidential data in a workbook. Forum owners and 
> members are not responsible for any loss.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to excel-macros...@googlegroups.com .
> To post to this group, send email to excel-...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ VBA code for delete duplicate rows

2015-10-22 Thread mani bolla
Hi All,

Request you to provide VBA code for delete duplicate rows

 Data before delete duplicate rows

Name Subject Marks

Ravi Maths  90

Rahul   Physics   85

Raju Science   75

Raju Science75

Ravi Maths   90

Data after deleting duplicates 

Name Subject Marks

Ravi Maths  90

Rahul   Physics   85

Raju Science   75

Request you to provide VBA code. Thanks in advance,

Regards
Mani


-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Test-remove duplicates.xlsx
Description: MS-Excel 2007 spreadsheet


Re: $$Excel-Macros$$ How to apply multiple filters based on multiple criteria

2015-10-22 Thread mani bolla
Hi Paul,

Is any update on requested problem statement, Kindly help us.

Regards
Mani

On Sunday, 18 October 2015 20:44:41 UTC+5:30, mani bolla wrote:
>
> Hi Paul,
>
> Thanks a ton for your help, Code not satisfying below object.
>
> if values in the criteria sheet not found in raw data sheet , values of 
> should highlight in another color in criteria sheet or should paste in 
> results sheet. 
>
> Truly appreciate your efforts.Once again thanks for your support. 
>
>
> Regards
> Bolla Manikanta
>
> On Mon, Oct 12, 2015 at 8:02 PM, Paul Schreiner  
> wrote:
>
>> I went ahead and used =RANDBETWEEN() to randomly generate a sample file 
>> of 80,000 rows of data. 
>> I then created a list of the top 20 state/district combinations.
>>
>> I filter the Criteria sheet and run the macro: Report_Filtered_Records
>>
>> it takes anywhere from 15 to 45 seconds to search through the 80,000 
>> records.
>>
>> It's not as "elegant" as I'd like, but it does work.
>>
>> see if you can implement it:
>> Option Explicit
>> Public Dict_Fields
>> Sub Report_Filtered_Records()
>> Dim stat
>> Dim nRows, R, rOut
>> Dim strCountry, strState, strDistrict
>> Dim KeyField
>> 
>> Application.ScreenUpdating = False
>> Sheets("Result").Range("A2:Z165000").ClearContents
>> 
>> stat = Load_Dict_Fields()
>> 
>> rOut = 1
>> nRows = Application.WorksheetFunction.CountA(Sheets("Raw 
>> Data").Range("A:A"))
>> For R = 2 To nRows
>> strCountry = Sheets("Raw Data").Cells(R, "A").Value
>> strState = Sheets("Raw Data").Cells(R, "B").Value
>> strDistrict = Sheets("Raw Data").Cells(R, "C").Value
>> KeyField = strCountry & "." & strState & "." & strDistrict
>> If (Dict_Fields.exists(KeyField)) Then
>> rOut = rOut + 1
>> Sheets("Result").Range("A" & rOut & ":E" & rOut) = 
>> Sheets("Raw Data").Range("A" & R & ":E" & R).Value
>> End If
>> Next R
>> Application.ScreenUpdating = True
>> Sheets("Result").Select
>> MsgBox "Reported " & rOut - 1 & " rows"
>> End Sub
>> Function Load_Dict_Fields()
>> Dim R, nRows
>> Dim strCountry, strState, strDistrict
>> Dim KeyField
>> Set Dict_Fields = CreateObject("Scripting.Dictionary")
>> Dict_Fields.RemoveAll
>> 
>> nRows = 
>> Application.WorksheetFunction.CountA(Sheets("Criteria").Range("A:A"))
>> For R = 2 To nRows
>> If (Sheets("Criteria").Cells(R, "A").EntireRow.Hidden = False) 
>> Then
>> strCountry = Sheets("Criteria").Cells(R, "A").Value
>> strState = Sheets("Criteria").Cells(R, "B").Value
>> strDistrict = Sheets("Criteria").Cells(R, "C").Value
>> KeyField = strCountry & "." & strState & "." & strDistrict
>> If (Not Dict_Fields.exists(KeyField)) Then
>> Dict_Fields.Add KeyField, Sheets("Criteria").Cells(R, 
>> "D").Value & "|" & Sheets("Criteria").Cells(R, "E").Value
>> End If
>> End If
>> Next R
>> Load_Dict_Fields = True
>> End Function
>>
>>
>>
>> *Paul*
>> -
>>
>>
>>
>>
>>
>>
>>
>> *“Do all the good you can,By all the means you can,In all the ways you 
>> can,In all the places you can,At all the times you can,To all the people 
>> you can,As long as ever you can.” - John Wesley*
>> -
>>
>> --
>> *From:* mani bolla 
>> *To:* MS EXCEL AND VBA MACROS  
>> *Sent:* Sunday, October 11, 2015 6:00 AM
>> *Subject:* $$Excel-Macros$$ How to apply multiple filters based on 
>> multiple criteria
>>
>> Hi All,
>>
>> i am looking for VBA code for below objective there are three sheets
>> 1.Raw data 2.Criteria 3.Result
>> Raw data sheet has 5 columns ( country, state, district, name, age ) , 80 
>> thousand rows, may be duplicate rows also
>> Criteria sheet has 3 columns (country, state, district) , 20 rows. unique 
>> values
>> i need to apply filters in raw data sheet with visible values of criteria 
>> sheet , if values are not found in raw data sheet , values of should 
>> highlight in another color in criteria sheet.
>> what are the values found in raw data sheet (including duplicate rows) 
>> should copy and paste in results sheet.
>> Request you to provide VBA code for this objective. Once again thanks for 
>> your support
>> -- 
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>> https://www.facebook.com/discussexcel
>>  
>> FORUM RULES
>>  
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) 

Re: $$Excel-Macros$$ Finding maximum combinations

2015-10-22 Thread Paul Schreiner
What kind of solution are you looking for?You said you're new to Excel, so does 
that mean you're not comfortable working with VBA macro programming?
You said you're doing it "manually".How?what steps do you go through?What do 
you want the end result to look like?

Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: srav anthi 
 To: MS EXCEL AND VBA MACROS  
 Sent: Thursday, October 22, 2015 3:39 AM
 Subject: $$Excel-Macros$$ Finding maximum combinations
   
Hi every one I am new to this form and new to excel as well...
I need some help hopping some one can help me out
If a column lets say "A" has numbers ranging from 200 to 1200 I want to find 
out if any two or three combinations of numbers can find sum of 1200 or 
under... this is to maximize the sheet which is 1200 lets say if I have numbers 
like

| 253 |
| 256 |
| 262 |
| 265 |
| 272 |
| 280 |
| 285 |
| 290 |
| 290 |
| 300 |
| 300 |
| 302 |
| 320 |
| 321 |
| 324 |
| 325 |
| 325 |
| 325 |
| 330 |
| 340 |
| 341 |
| 345 |
| 347 |
| 352 |
| 354 |
| 355 |
| 363 |
| 370 |
| 375 |
| 375 |
| 380 |
| 385 |
| 396 |
| 406 |
| 412 |
| 420 |
| 426 |
| 428 |
| 431 |
| 431 |
| 438 |
| 440 |
| 443 |
| 450 |
| 450 |
| 454 |
| 455 |
| 455 |
| 468 |
| 470 |
| 479 |
| 484 |
| 490 |
| 490 |
| 490 |
| 490 |
| 493 |
| 506 |
| 506 |
| 518 |
| 540 |
| 558 |
| 567 |
| 569 |
| 572 |
| 591 |
| 599 |
| 599 |
| 600 |
| 600 |
| 600 |
| 600 |
| 600 |
| 600 |
| 600 |
| 601 |
| 615 |
| 615 |
| 620 |
| 621 |
| 621 |
| 625 |
| 635 |
| 638 |
| 651 |
| 652 |
| 665 |
| 667 |
| 677 |
| 687 |
| 687 |
| 694 |
| 700 |
| 710 |
| 713 |
| 716 |
| 721 |
| 722 |
| 727 |
| 742 |
| 750 |
| 750 |
| 750 |
| 750 |
| 756 |
| 777 |
| 780 |
| 780 |
| 800 |
| 810 |
| 811 |
| 813 |
| 822 |
| 822 |
| 825 |
| 835 |
| 835 |
| 836 |
| 838 |
| 848 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 850 |
| 870 |
| 870 |
| 876 |
| 880 |
| 888 |
| 888 |
| 892 |
| 896 |
| 900 |
| 915 |
| 930 |
| 938 |
| 950 |
| 950 |
| 951 |
| 957 |
| 960 |
| 960 |
| 960 |
| 961 |
| 964 |
| 971 |
| 975 |
| 995 |
| 1000 |
| 1010 |
| 1010 |
| 1010 |
| 1010 |
| 1010 |
| 1010 |
| 1012 |
| 1021 |
| 1040 |
| 1048 |
| 1065 |
| 1069 |
| 1082 |
| 1085 |
| 1085 |
| 1099 |
| 1104 |
| 1110 |
| 1116 |
| 1140 |
| 1140 |
| 1153 |
| 1159 |
| 1163 |
| 1176 |
| 1179 |
| 1200 |
| 1200 |
| 1200 |


I need to find as much as higher number as possible as off now I am doing 
manually any help is greatly appreciated thank you 
-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, 

Re: $$Excel-Macros$$ Task Scheduler

2015-10-22 Thread Chandra Shekar
Hello Paul,

Am trying to run excel from task scheduler which as macro in it here I need
to run task scheduler from 10:00 AM  - 6:00 PM(except weekends)

At present I have scheduled it from task scheduler and its working fine
what I need is it should run from 10:00 AM - 6:00 PM only.


Regards,

Chandrashekar B

On Wed, Oct 21, 2015 at 4:48 PM, Paul Schreiner 
wrote:

> Yes there are.
> Without knowing what it is you are trying to do, it's a little difficult
> to describe.
>
> Have you already created a Scheduled Task in the Scheduler?
>
> What is the name of the program you're running?
>
> The first step is to use a text editor (like NotePad)
> to create a .bat file with the entry like I described previously:
>
> TestTask.bat:
> -
> schtasks /delete /tn "Release ADTL"  /f
> schtasks /create /tn "Release ADTL"
>  /tr "C:\WINNT\system32\wscript.exe c:\temp\Release-ADTL.vbs ALL"
>  /sc hourly
>  /st 8:00:00
>
> (yours will be different)
>
> Run that .bat file and see if it creates the Scheduled Task correctly.
>
> Once you have this .bat file working properly, then we can work on writing
> the VBA that creates and runs this bat file.
>
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you
> can,In all the places you can,At all the times you can,To all the people
> you can,As long as ever you can.” - John Wesley*
> -
>
> --
> *From:* Chandra Shekar 
> *To:* excel-macros@googlegroups.com
> *Sent:* Tuesday, October 20, 2015 11:49 PM
>
> *Subject:* Re: $$Excel-Macros$$ Task Scheduler
>
> Hello,
>
> Okay. Is there steps to do it?
>
>
> Regards,
>
> Chandru
>
>
>
> On Tue, Oct 20, 2015 at 5:13 PM, Paul Schreiner 
> wrote:
>
> It's the same Task Scheduler.
>
> Basically, the Operating System has an application that handles scheduled
> tasks.
>
> Windows has an application that serves as an INTERFACE to the task handler.
>
> There is a CMD interface called schtasks that also serves as an interface
> to the same task handler.
>
> If you use a .bat file and schtasks as described below,
> it will make an entry that you can view and modify in the Windows Task
> Scheduler.
>
> So, you can use VBA to create and run a .bat file that can make or change
> entries to the Task Scheduler.
>
>
>
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you
> can,In all the places you can,At all the times you can,To all the people
> you can,As long as ever you can.” - John Wesley*
> -
>
> --
> *From:* Chandra Shekar 
> *To:* excel-macros@googlegroups.com
> *Sent:* Tuesday, October 20, 2015 2:55 AM
> *Subject:* Re: $$Excel-Macros$$ Task Scheduler
>
> Hi,
>
> Need to schedule through WIndows Task Scheduler.
> Control Panel\All Control Panel Items\Administrative Tools\Task Scheduler
>
>
> Regards,
>
> Chandru
>
>
>
> On Mon, Oct 19, 2015 at 4:18 PM, Paul Schreiner 
> wrote:
>
> Are you saying that you want VBA to schedule a task?
>
> In the past, I created a userform in Excel to create a Scheduled Task.
> (Our Windows Profile had the task Scheduler locked out)
>
> The VBA macro made use of the "command line" for creating scheduled tasks:
> schtasks /create /tn 
>  /tr 
>  /sc weekly [/mo {1 - 52}]
> [/d {[,MON - SUN...] | *}]
> [/st ]
> [/sd ]
> [/ed ]
> [/it]
> [/ru {[\]
> [/rp ] | System}]
> [/s 
> [/u [\]
> [/p ]]]
>
> for instance, I have a vbscript that runs hourly to check for files in a
> specific folder to move to a "released" folder.
>
> schtasks /delete /tn "Release ADTL"  /f
> schtasks /create /tn "Release ADTL"
>  /tr "C:\WINNT\system32\wscript.exe c:\temp\Release-ADTL.vbs ALL"
>  /sc hourly
>  /st 8:00:00
>
> In my VBA, I create the schtasks command line and write it to a .bat file
> (I called it C:\temp\create_task.bat)
>
> Then, I used:
> stat = Shell("C:\temp\create_task.bat") to execute the .bat file.
>
> I think to stop your program at a specific time you could use:
>
> schtasks /end 
>
> I'm sure you can google some examples.
>
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you
> can,In all the places you can,At all the times you can,To all the people
> you can,As long as ever you can.” - John Wesley*
> -
>
> --
> *From:* Chandra Shekar 
> 

$$Excel-Macros$$ How to replace a macro in all sheets

2015-10-22 Thread Pravin Gunjal
Hi Friend
pl help me out to replace a macro in all sheets of the same file. Or any
other solution may welcome.
Thanks
Pravin Gunjal
On Oct 22, 2015 1:09 PM, "Pravin Gunjal"  wrote:

> Can anyone help me on this issue plz.
> On Oct 21, 2015 3:26 PM, "Pravin Gunjal"  wrote:
>
>> Hi Mandeep
>>
>> The code you have replaced in this mail​ has to be replaced in other
>> sheets also of the same file.. file is attached for your immediate
>> reference.
>>
>> Pl help me out on this.
>>
>> Thanks,
>> Pravin Gunjal.
>>
>> On Oct 20, 2015 4:35 PM, "Mandeep Baluja" <
>> ​​
>> ​​
>> rockerna...@gmail.com> wrote:
>>
>>> Hi Praveen,
>>>
>>> Welcome,I am sorry but Please elaborate your query Modify in what sense
>>> and for all sheets means you have the same code in all sheets what kind of
>>> modification you're looking for whether it is automated or it is manual.
>>>
>>> Regards,
>>> Mandeep Baluja
>>>
>>>
>>>
>>> On Tuesday, October 20, 2015 at 4:20:14 PM UTC+5:30, Pravin Gunjal wrote:

 Dear Mandeep
 Thank you so much.. it works fantastic.

 Can you tell me one more thing, how to modify the vba code in all
 sheets...

 Regards,
 Pravin Gunjal.
 On Oct 20, 2015 2:47 PM, "Mandeep Baluja"  wrote:

> check this out !!
>
>
>
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
>
> If Not Application.Intersect(Target, Range("n4:n100")) Is Nothing
> Then
> For Each cell In Target
> If cell.Value <> "" Then
> cell.Offset(0, 1).Value = Application.UserName
> End If
> Next
> End If
>
> End Sub
>
> Regards,
> Mandeep baluja
> https://www.facebook.com/groups/825221420889809/
>
>
>
>
>
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
> It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like
> Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need
> Advice will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners
> and members are not responsible for any loss.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/excel-macros/IAYAJFr4fQ8/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> excel-macros...@googlegroups.com.
> To post to this group, send email to excel-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
>>> It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>>> https://www.facebook.com/discussexcel
>>>
>>> FORUM RULES
>>>
>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>> will not get quick attention or may not be answered.
>>> 2) Don't post a question in the thread of another member.
>>> 3) Don't post questions regarding breaking or bypassing any security
>>> measure.
>>> 4) Acknowledge the responses you receive, good or bad.
>>> 5) Jobs posting is not allowed.
>>> 6) Sharing copyrighted material and their links is not allowed.
>>>
>>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>>> members are not responsible for any loss.
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "MS EXCEL AND VBA MACROS" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/excel-macros/IAYAJFr4fQ8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> excel-macros+unsubscr...@googlegroups.com.
>>> To post to this group, send email to excel-macros@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/excel-macros.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use