$$Excel-Macros$$ Unsubscribing due to unsolicited emails

2018-08-09 Thread Paul Schreiner
Dear fellow programmers,
I have been a member of this group for a number of years, but the extreme 
abundance of unsolicited SPAM in the form of job postings (which is 
specifically disallowed in the forum rules) has forced me to choose to 
unsubscribe from this group.

For those I have worked with in the past, feel free to hang onto my email 
address and contact me directly.
I would enjoy keeping in touch.

I'm sure you'll find me on other VBA help sites!

Paul Schreiner

-- 
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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ ETL Data Architect

2018-08-08 Thread Paul Schreiner
At the bottom of each message, there is the address to use to unsubscribe.
I'm nearly to the point of doing so myself...Really disappointed that the 
owner/moderator doesn't enforce the rules for the group (re: #5:) 
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
- 

On Wednesday, August 8, 2018 12:39 AM, Mohit Bheda 
 wrote:
 

 Hi HiltonI want to unsubscribe this group please do the needful.
-- 
Kind Regards, 


Mohit BhedaAssistant Manager
Accounts
Cruise Electric Pvt. Ltd.
23B Mahal Industrial Estate,
Mahakali Caves Road, Andheri (E),Mumbai 400 093, India
T : +91 22 4242 M:  +91 70459 59229
E : mohit.bh...@cruiseac.comw: www.cruiseac.com
DISCLAIMER: This email contains confidential information. It is intended 
exclusively for the addressees. If you are not an addressee, you must not 
store, transmit or disclose its contents. Instead please notify the sender 
immediately; and permanently delete this e-mail from your computer systems. We 
have taken reasonable precautions to ensure that no viruses are present. 
However, you must check this email and the attachments, for viruses. We accept 
no liability whatsoever, for any detriment caused by any transmitted virus.
On Wed, Aug 8, 2018 at 2:23 AM, Hilton Varma  wrote:

Hi,   Hope you are doing great,This is Hilton from ASK Staffing.I 
was reviewing your resume online and would like to talk to you regarding 
anexciting opportunity we have with one of ASK's premier clients. 
Yourexperience looks like a good fit for the position and I wanted to know if 
youwould be interested in exploring this opportunity.  Since this is an urgent 
business requirement,I’d appreciate a prompt response on this.Send me your 
resume and 2-3 work references(name, number, company, Title of the job, E-mail 
Id) attached to this e-mail  Position:   ETL Data 
ArchitectLocation:  Bellevue, WADuration:  Long Term 
(More than 1 Year)
Only GC, USC Required Skills: ·Candidate should have 10 plus years of 
IT Industry experience·Candidate with hands on development experience 
in dataintegration, ETL, data transformation is preferred·Must have 4 
plus years of ETL development experience using IBMDataStage / IBM Data 
Management Suite·Must have experience with complex data transformation 
usingDataStage 11.x and above·Ability to work as Data Architect, 
leading data movement, dataintegration across multiple systems.·
Candidate should be familiar with Oracle and IBM Db (DB2).·Must have 
good knowledge of PL/SQL. Ability to write complex SQLand packages preferred·   
 Candidate should be able to lead and participate as functional 
andintegration testing at different phases of project
-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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 an

Re: $$Excel-Macros$$ Preventing to Delete based on condition

2018-07-31 Thread Paul Schreiner
I'm not sure how you implemented the code.If it is installed properly, the user 
cannot SELECT the entire row to delete!
The code goes in the "Thisworkbook" module.you can add the line:
Debug.Assert False
to have it pause to see if the macro is actually being called. 
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
- 

On Monday, July 30, 2018 11:59 PM, Chandra Shekar 
 wrote:
 

 Hello Paul,
Thanks for the reply. I tried this code but if user delete entire row it does 
not work.
My requirement is code should not allow to delete entire row but it should 
allow to delete cells & it should allow to update cells/row.
Regards,
Chandru
On Mon, Jul 30, 2018 at 6:20 PM, Paul Schreiner  wrote:

I've done something like this before using a couple of different methods.
It's really going to depend on what you're trying to "block".
For instance, if you want to keep someone from deleting any of the rows 1-8, 
thenyou can use a SelectionChange event to test for selected rows in the 1-8 
range and the number of columns selected as greater than, say, 100...If the 
selection meets this criteria, simply change the selection and cancel the sub
Like:
Private Sub Workbook_SheetSelectionChange( ByVal Sh As Object, ByVal Target As 
Range)
   Dim Targ As Range
   For Each Targ In Target.Rows
    If ((Targ.Row >= 1) And (Targ.Row <= 8)) Then
    If (Target.Columns.Count > 100) Then
    Application.EnableEvents = False
    Cells(Targ.Row, "A").Select
    Application.EnableEvents = True
    Exit Sub
    End If
    End If
   Next TargEnd Sub
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
-- --- 

On Sunday, July 29, 2018 4:06 AM, Chandra Shekar 
 wrote:
 

 Hello,
Is there any way to prevent from deletion based on condition but without using 
protecting sheet.
For ex: Prevent user to delete row lesser than 8 but still he can able to edit 
it.


Regards,
Chandru-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://groups.goo

Re: $$Excel-Macros$$ Stop with the job postings!

2018-07-30 Thread Paul Schreiner
I know!Right?I had them all blocked and something happened and now they all 
started getting through.I'm very close to unsubscribing from the list because 
of all of the job postings.
One other sight that I used to participate in simply closed down completely 
because of the spam postings. 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
- 

On Monday, July 30, 2018 1:43 PM, Janell Craig  wrote:
 

 This forum is NOT intended to distribute job postings!

Sent from my iPhone

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Preventing to Delete based on condition

2018-07-30 Thread Paul Schreiner
I've done something like this before using a couple of different methods.
It's really going to depend on what you're trying to "block".
For instance, if you want to keep someone from deleting any of the rows 1-8, 
thenyou can use a SelectionChange event to test for selected rows in the 1-8 
range and the number of columns selected as greater than, say, 100...If the 
selection meets this criteria, simply change the selection and cancel the sub
Like:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As 
Range)
   Dim Targ As Range
   For Each Targ In Target.Rows
    If ((Targ.Row >= 1) And (Targ.Row <= 8)) Then
    If (Target.Columns.Count > 100) Then
    Application.EnableEvents = False
    Cells(Targ.Row, "A").Select
    Application.EnableEvents = True
    Exit Sub
    End If
    End If
   Next TargEnd Sub
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
- 

On Sunday, July 29, 2018 4:06 AM, Chandra Shekar 
 wrote:
 

 Hello,
Is there any way to prevent from deletion based on condition but without using 
protecting sheet.
For ex: Prevent user to delete row lesser than 8 but still he can able to edit 
it.


Regards,
Chandru-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Excel Formula : Duplicate values

2018-07-25 Thread Paul Schreiner
You can use:
=IF(AND(COUNTIFS(A:A,A2,B:B,"A")>0,COUNTIFS(A:A,A2,B:B,"B")>0),"Yes","No") 
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
- 

On Wednesday, July 25, 2018 7:59 AM, Chandra Shekar 
 wrote:
 

 Hello,

Need formula which should check Column A and B For Ex: If CPI have both A & B 
then its Yes. IF CPI has only A or B then it should be No.

Regards,
Chandru-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Re: Need Help in IF formula

2018-02-13 Thread Paul Schreiner
the formula seems to work as it is designed.So what kind of help do you need? 
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
- 

On Monday, February 12, 2018 11:03 PM, GENIUS  wrote:
 

 -- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ macros won't run as written

2018-01-10 Thread Paul Schreiner
What does your macro look like?
I recorded a macro, then "cleaned it up".the result being:
Sub PageFormat
    ActiveSheet.PageSetup.LeftFooter = "&D"
    ActiveSheet.PageSetup.RightFooter = "&Z&F" End Sub
it seems to work great in Excel 2010
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
- 

On Tuesday, January 9, 2018 5:26 PM, "kspeck...@kearnycountyhospital.com" 
 wrote:
 

 I have a very basic macro to do a page set up format.  Even though it looks 
right in VBA it doesn't do what it is set up to do. I set up the following:
Page - Fit 1 to 1 and Landscape - this part worksMargins settings - this part 
also worksHeader/Footer - Put [&(Date] in the Left section and &{Path]&[File] 
in Right section - it always changes it to this in the Left section  &&R&[Path] 
 with nothing in Right sectionSheet -  Rows to Repeat at top - this works, but 
it changes the Comments from none to At end of sheet.
I have gone to Trust Center and have Enable all macros selected, and I save my 
workbooks as Excel Macro-Enabled Workbook.Our IT dept has uninstalled and 
reinstalled my Microsoft Excel products and it just happens again.  They cannot 
figure it out.I can copy the VBA out here if it helps.
Any ideas would be greatly appreciated!Kelly Ann-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need VBA or VBS scripting codes

2017-12-22 Thread Paul Schreiner
Yes... that's what this group is for!
If you tell us what the issue is what you've done so far, there's lots of us 
available to help! 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
- 

On Friday, December 22, 2017 3:15 AM, John A  wrote:
 

 I want automate Excel reports using VBA or VBS scripting codes
I need codes anyone can help me

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Urgent !!! Urgent !!! Urgent !!! Vba code required !!! To copy from another workbook to the current/active workbook

2017-12-11 Thread Paul Schreiner
First of all, just as suggestion, take a look at the Forum Rules.the first is 
more of a recommendation than a rule, since violating it doesn't get you banned 
from the group, but it COULD make it take longer to get an response:

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.
Because, to ME no issue posted is urgent.It doesn't affect MY job.And no one is 
waiting for results from ME.Therefore, seeing "Urgent!!! Urgent!!! Urgent!!!" 
simply wastes my time.
In the past, I've set my email filter to move anything with "urgent" in the 
subject line to my Junk folder.But since I've become responsible for another 
site, I've had to "relax" my email filters.
In the mornings, before I begin my day I often like to take the time to see if 
there's a question I can contribute to.Messages that choose to spend more time 
describing how "urgent" their issue is instead of spending the time describing 
the issue suggests to ME that question will be incomplete and spend more of MY 
time just to get to the issue at hand and therefore get moved to the bottom of 
the list.
In your case, you've added a specific requirement:"Only copy paste , no copy 
paste special"
This requirement forces the macro to utilize the system clipboard to copy the 
entire cell content and formatting to the clipboard and then copy it from the 
clipboard to the new file.
>From a programming perspective, this is "sloppy" and potentially utilizes 
>system resources that may be insufficient.In addition, if the macro must run 
>for any length of time, if you happen to select something from another window 
>(like checking your email while it runs) then you run the risk of accidentally 
>copying something to the clipboard that then gets incorporated into the 
>running macro.
Nevertheless,
What have you attempted?have you Googled anything?Choosing another file to open 
is accomplished with a FileDialog.Many examples are available.
Creating a macro to copy/paste is a simple use of the macro recorder and some 
modifications to clean it up a bit.Depending on how it is to be used in the 
future.
Based on the "Urgent" need, and the limited description of the issue,Is this a 
classroom assignment that you're hoping that this forum may be used to complete?
If so, I'm sure someone here would be willing to help you work through how to 
accomplish the assignment rather than simply do the assignment for you.
sorry if I've spent time I COULD'VE used to write code but instead vented my 
disappointment.
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
- 

On Monday, December 11, 2017 4:52 AM, rathi rupenzala 
 wrote:
 

 Hi team,
Please help to code to pick a file from the folder , and just copy paste the 
data to the current/active workbook.
Only copy paste , no copy paste special

-- 
With Regards,Rathi Alageshu.-- 
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 https://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 

Re: $$Excel-Macros$$ Delete some rows from Excel as per condition

2017-12-07 Thread Paul Schreiner
I looked in your attached macro module and do not see where you included the 
loop to delete rows by year.
Can you send me some sample data as well so I can test/debug the macro you're 
using? 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
- 

On Thursday, December 7, 2017 6:17 AM, Pravin Gunjal  
wrote:
 

 Dear Mr.Paul,
Thanks for your reply.I tried using this code in the existing macro of the file 
and observed that, it deletes only the year 2012 and not 2011.Also it has 
deleted the header row apart from old years, which shouldn't do.
The existing macro is attached for your immediate reference. Please help.
With regards,
Pravin Gunjal
  On Tue, Dec 5, 2017 at 5:51 PM, Paul Schreiner  wrote:

Sure, the "trick" is that you have to start at the last row and work your way 
"up".
because otherwise, when you delete a row, the "next" row moves up into the 
deleted position, then the loop would skip over that record.
By starting at the bottom, the row that moves up has already been processed..
the macro would look something like:​​Sub Delete_By_Year()
    Dim nRows, nRow
    Application.ScreenUpdating = False    On Error Resume Next
    nRows = Application.WorksheetFunction. CountA(Range("A:A"))
    For nRow = nRows To 1 Step -1
    If (nRow Mod 1000 = 0) Then Application.StatusBar = "Processing " & nRow
    If ((Year(Cells(nRow, "H").Value) = 2011) _
 Or (Year(Cells(nRow, "H").Value) = 2012)) Then
    Cells(nRow, "A").EntireRow.Delete
    End If
    Next nRow
    Application.ScreenUpdating = True
    Application.StatusBar = False
    MsgBox "finished"
End Sub
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
-- --- 

On Tuesday, December 5, 2017 2:46 AM, Pravin Gunjal  
wrote:
 

 Hi Experts
I want to delete those rows which belongs to Year 2011 & 2012 available as per 
column H of "Expiry Date"


Can we do it by any macro. Thank you in anticipation.
Regards,
Pravin Gunjal.-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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/ SM3b1he4JSA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
excel-macros+unsubscribe@ googlegroups.com.
To post to this gr

Re: $$Excel-Macros$$

2017-12-05 Thread Paul Schreiner
OK, you could use a macro like:
Sub Gen_List()
    Dim nRows, nRow, dRow, inx
    dRow = 0
    nRows = Application.WorksheetFunction.CountA(Range("A:A"))
    For nRow = 1 To nRows
    For inx = 1 To 10
    dRow = dRow + 1
    Cells(dRow, "B").Value = Cells(nRow, "A").Value
    Next inx
    Next nRow
End Sub
 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
- 

On Tuesday, December 5, 2017 7:36 AM, Ayoub Kakande  
wrote:
 

 Column A has fixed numbers. e,g A1=234, A2=323 A3=423424.
Column B should pick A1 and repeat it 10 times then move to A2 repeat it also 
10 times
e.g B1=234, B2=234, B3=234, B4=234, B5=234, B6=234, B6=234, B7=234, B8=234, 
B9=234, B10=234, B11=323, B12=323

Thanks

On 5 December 2017 at 15:26, Paul Schreiner  wrote:

Please elaborate.
I understand that you have random numbers in column A.how many? do they change 
when the workbook calculates? or are they "fixed"?
What do you mean: " I want column B to pick from A"Do you want to randomly 
select a random number from column A?
then:  "fill one number 10 times"What does that mean?
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
-- --- 

On Tuesday, December 5, 2017 4:52 AM, Ayoub Kakande  
wrote:
 

 Dear All,
I have column A that contains random numbers,
I want column B to pick from A fill one number 10 times, thn pick the second 
fill it 10 times etc,
Any help will be much appreciated

-- 
**In sun set years education is not associated with standardof living and 
medical care access; it is the the financial myosin and actin!!!

 Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture 
-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://groups.google.com/d/ optout.




-- 
**In sun set years education is not associated with standardof living and 
medical care access; it is the the financial myosin and actin!!!

 Don't give me fish, teach me how to fish

Kayoub 

Re: $$Excel-Macros$$

2017-12-05 Thread Paul Schreiner
Please elaborate.
I understand that you have random numbers in column A.how many? do they change 
when the workbook calculates? or are they "fixed"?
What do you mean: " I want column B to pick from A"Do you want to randomly 
select a random number from column A?
then:  "fill one number 10 times"What does that mean?
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
- 

On Tuesday, December 5, 2017 4:52 AM, Ayoub Kakande  
wrote:
 

 Dear All,
I have column A that contains random numbers,
I want column B to pick from A fill one number 10 times, thn pick the second 
fill it 10 times etc,
Any help will be much appreciated

-- 
**In sun set years education is not associated with standardof living and 
medical care access; it is the the financial myosin and actin!!!

 Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture 
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Delete some rows from Excel as per condition

2017-12-05 Thread Paul Schreiner
Sure, the "trick" is that you have to start at the last row and work your way 
"up".
because otherwise, when you delete a row, the "next" row moves up into the 
deleted position, then the loop would skip over that record.
By starting at the bottom, the row that moves up has already been processed..
the macro would look something like:Sub Delete_By_Year()
    Dim nRows, nRow
    Application.ScreenUpdating = False    On Error Resume Next
    nRows = Application.WorksheetFunction.CountA(Range("A:A"))
    For nRow = nRows To 1 Step -1
    If (nRow Mod 1000 = 0) Then Application.StatusBar = "Processing " & nRow
    If ((Year(Cells(nRow, "H").Value) = 2011) _
 Or (Year(Cells(nRow, "H").Value) = 2012)) Then
    Cells(nRow, "A").EntireRow.Delete
    End If
    Next nRow
    Application.ScreenUpdating = True
    Application.StatusBar = False
    MsgBox "finished"
End Sub
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
- 

On Tuesday, December 5, 2017 2:46 AM, Pravin Gunjal  
wrote:
 

 Hi Experts
I want to delete those rows which belongs to Year 2011 & 2012 available as per 
column H of "Expiry Date"


Can we do it by any macro. Thank you in anticipation.
Regards,
Pravin Gunjal.-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Power BI

2017-11-28 Thread Paul Schreiner
I've never heard of it, but:A) This is a site for Excel macros, not "Power Bi" 
B) a Google search took me to the Microsoft site: 
https://powerbi.microsoft.com/ that has guided learning.
Google also indicated YouTube channels and more("Power Bi tutorial" has over 
1,000,000 hits)

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
- 

On Tuesday, November 28, 2017 3:23 AM, Muralidhar E 
 wrote:
 

 

Hi friends,
I want to learn Power BI(Power Pivots, Power query and power maps) in briefly 
with examples, and training material also, with tips and tricks. Any useful 
links, PPT's and PDF etc
Thanks in advance
-- 
Thanks & Regards, Muralidhar E.Think differentDo DifferentMake different-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Lookup variable sheet name

2017-11-25 Thread Paul Schreiner
Are you trying to look up the date from J1?
If so, wouldn't it be:=VLOOKUP($J$1,INDIRECT("'"&E2&"'!"&"$A$3:$F$3"),5,0)

and, I'd suggest changing $F$3 to something like $F$1000
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
- 

On Saturday, November 25, 2017 9:46 AM, Steve Weaver 
 wrote:
 

 Not sure what I'm missing but I'm having difficulty with this formula in the
attached workbook, any help would be appreciated.

=VLOOKUP($E2,INDIRECT("'"&E2&"'!"&"$A$3:$F$3"),5,0)


Sincerely,

Steve

 

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ CODE FOR RANGE

2017-10-20 Thread Paul Schreiner
In your macro:Sub sbCompareColumns_2()
    iCntr = 1
    Do While Cells(iCntr, 1) <> ""
    If UCase(Cells(iCntr, 1)) = UCase(Cells(iCntr, 2)) Then
    Cells(iCntr, 3) = "Matched"
    Else
    Cells(iCntr, 3) = "Not Matched"
    End If
    iCntr = iCntr + 1
    Loop
End Sub
the Cells() function syntax is:Cells(Row,Column)
So, when you set iCntr = 1and use it in: Do While Cells(iCntr, 1) <> ""
the Do...Loop starts with row 1 in column 1 (A) and continues until the cell in 
column A is blank.
so, if you want to start the loop at row 12, simply change the iCntr to 12:
iCntr = 12

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
- 

On Friday, October 20, 2017 3:43 AM, Izhar  wrote:
 

 If I change the location of the data as shown in A12:B16, then where should I 
change the code, please do the needful
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Date Generation !!!

2017-10-10 Thread Paul Schreiner
Is there a reason you need a "code with loop"?I take it you want it in VBA?It's 
really the same process as the formula I gave you.
The loop is:Dim nRow as integerFor nRow = 2 to 57...Next nRow In the loop, you 
test to see if the value in column A of the current row is not blank.Instead 
of:IF(A2<>"",you use:If (Cells(nRow, "A").Value <> "") Then
If it is not blank, then you set cell B = cell A:Cells(nRow, "B").Value = 
Cells(nRow, "A").Value
if it IS blank, then the value in cell B is (1) more than the B value of the 
previous row:Cells(nRow, "B").Value = Cells(nRow - 1, "B").Value + 1
If you want to make the whole thing "dynamic", you'll have to decide how you 
want to determine the number of rows to process in the loop.
But otherwise, it's pretty simple.

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
- 

On Tuesday, October 10, 2017 9:27 AM, rathi rupenzala 
 wrote:
 

 How do I draft it in code with loop ... please help !!!
On Tue, Oct 10, 2017 at 6:45 PM, Paul Schreiner  wrote:

You could use a simple formula in column B, starting in B2 
with:=IF(A2<>"",A2,B1+1)
and copied down.
Excel automatically calculates the next date and considers leap years when 
doing so. 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
-- --- 

On Tuesday, October 10, 2017 8:44 AM, rathi rupenzala 
 wrote:
 

 Hi Team,
I have enclosed the excel file - Sheet1 for your reference.
1. I need the day , month and year to be generated continuously until the next 
cell which has the date in it and so on and so forth 
2.The leap year has to be checked prior to the increment.

-- 
With Regards,Rathi Alageshu.
-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://groups.google.com/d/ optout.




-- 
With Regards,Rathi Alageshu.-- 
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) Us

Re: $$Excel-Macros$$ Date Generation !!!

2017-10-10 Thread Paul Schreiner
You could use a simple formula in column B, starting in B2 
with:=IF(A2<>"",A2,B1+1)
and copied down.
Excel automatically calculates the next date and considers leap years when 
doing so. 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
- 

On Tuesday, October 10, 2017 8:44 AM, rathi rupenzala 
 wrote:
 

 Hi Team,
I have enclosed the excel file - Sheet1 for your reference.
1. I need the day , month and year to be generated continuously until the next 
cell which has the date in it and so on and so forth 
2.The leap year has to be checked prior to the increment.

-- 
With Regards,Rathi Alageshu.
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Excel Macro Help

2017-10-09 Thread Paul Schreiner
sure.fairly easily done.Please provide sample files. 
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
- 

On Saturday, October 7, 2017 7:48 AM, Ram Prakash Palaniswamy 
 wrote:
 

 I have a master excel file (ABC.xls) which has n number of rows and columns. 
And also i have another excel file (DEF.xls) which has limited number of same 
data from the master excel file (ABC.xls). 
I need a macro code for if i update some values in the master excel file 
(ABC.xls), automatically the values needs to update in the second excel file 
(DEF.xls). 
Can you please any one help on this? 
Thank you in advance :-) 
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Formula for Month wise calculation

2017-09-29 Thread Paul Schreiner
This is pretty "convoluted" logic.I tried several approaches that soon became 
extremely complex (as if this isn't?)
The approach is this:Establish a starting date of 01-Jan of LAST yearand an 
Ending Date of -1-Jan of NEXT year.(I could've hard-coded these dates, but then 
you'd have to edit the macro in a few months!)
then, I calculate the number of days between those two 
dates:DATE(YEAR(NOW())+1,1,1)-DATE(YEAR(NOW())-1,1,1)
Next, calculate the number of days between this year old starting date and the 
"IN" date. $B3-DATE(YEAR(NOW())-1,1,1)Now, for the month you're evaluating, 
find the number of days since the first day of the month and this old starting 
date:H$2-DATE(YEAR(NOW())-1,1,1)
I select the MAX() of these two dates and subtract it from the total days.
I do the same thing, calculating the days between the "future" date and the 
"Out" dateand compare it to the first day of the NEXT month from the reporting 
month.(I have to take into account that the "next" month could also be January 
of the next year, so I use:DATEVALUE(MONTH(H$2+31)&"/1/"&YEAR(H$2+31)) to 
calculate that date.the MAX() of these two dates is also subtracted from the 
total days and you get the days within each month!
Plugging in valuesIf you have an "IN" date of 29-Jan-2017and an "OUT" date of 
15-Feb-2017and you're looking for the days worked in February of 2017:
I counted the number of days from 01-Jan-2016 and 01-Jan-2018 (731)The days 
from February 1 to 01-Jan-2016 is 397, the days from the "IN" date to 
01-Jan-2016 is 394, so the MAX() is 397The days from first of the next month 
(01-Mar-2017) to 01-Jan-2018 is 306The days from the "Out" date of 15-Feb-2017 
to 01-Jan-2018 is 320so the MAX() here is 320.Taking total days available 
731-397-320 gives 14.
Now, I have a slight issue with the total here.since 15-Feb-2017 should be 
FIFTEEN days in February, not 14.
It turns out that in the month of the "OUT" date, the calculation will be off 
by 1.so, I check to see if the month and year of the "out" date is the same as 
the "evaluation" month and if they match, I add 
1:IF(AND(MONTH($C3)=MONTH(H$2),YEAR($C3)=YEAR(H$2)),1,0)
the formula ends up looking 
like:=MAX(DATE(YEAR(NOW())+1,1,1)-DATE(YEAR(NOW())-1,1,1)
-MAX($B3-DATE(YEAR(NOW())-1,1,1),H$2-DATE(YEAR(NOW())-1,1,1))
-MAX(DATE(YEAR(NOW())+1,1,1)-$C3,DATE(YEAR(NOW())+1,1,1)-DATEVALUE(MONTH(H$2+31)&"/1/"&YEAR(H$2+31))),0)
+IF(AND(MONTH($C3)=MONTH(H$2),YEAR($C3)=YEAR(H$2)),1,0)
hope this helps
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
- 

On Saturday, September 23, 2017 12:45 PM, vikas khen  
wrote:
 

 Hi All,
Request to all of you that kindly find the attached sheet and help me to 
calculate  Month wise cost by selecting the month and how to represent the same 
in piot table too.
your assistance in this regards will be highly appreciated
Thank you
Regards,
Vikhen-- 
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 https://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 the

Re: $$Excel-Macros$$ reconiling large data in excel

2017-09-18 Thread Paul Schreiner
I have no idea what you're trying to do.You have one sheet called "ven" which 
has 998 rows dating from April 1, 2017 to December 24, 2019then you have a 
sheet called "ledg" which has 2009 rows from to April 1, 2016 April 10, 
2016.None of the dates overlap, so trying to guess what you're trying to 
accomplish with "reconciling" the data is not possible.
Please provide an example of what results you're trying to achieve.
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
- 

On Monday, September 18, 2017 10:50 AM, Mohammed Hamed Ajaz 
 wrote:
 

 Dear All,
Please Help in reconciling large data in excel. i had tried through vlookup but 
i am not reconcile since data contains same values twice or more times hence in 
vlookup its ignoring the same value.
Kindly do the needful in finding the solution. For your reference i have 
attached file.

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Extract data in svg file and store automatically in excel

2017-07-31 Thread Paul Schreiner
SVG files are in XML format.In the past, I've used Excel VBA to open XML files 
as a "text stream" and parsed out the data to extract data. 
If you can send me a sample file and tell me what you're looking for "model 
number" and what values you expect to extract, I can see what I can do to 
help.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
- 

On Sunday, July 30, 2017 4:55 AM, Uma Balasubramanian 
 wrote:
 

 suppose if there are 20 svg files with the same circuit components but with 
different component values, I need to extract the content of transistor(model 
number) in the circuit alone and automatically export them to excel sheet. 
Kindly help. TIA-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Help on Week Formula

2017-07-25 Thread Paul Schreiner
I think you'll need to be more specific on how you want the "weeks" 
calculated.For instance, in August (2017) August 1 is on  a Tuesday.
so, the weeks are handled:

but, July 1 is on a Saturday,so, does Week 1 only have a single day?
Or is July 1 counted as part of week 5 of June.If so, what is the minimum 
number of days counted in a week 1?
Or are you wanting a simple count of days:Week 1 = first 7 daysWeek 2 = Second 
7 daysetc.
 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
- 

On Tuesday, July 25, 2017 3:34 AM, Chandra Shekar 
 wrote:
 

 Hello Team,
Could you please help me in attached week formula.
Regards,
Chandru-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Macro Error in line. .

2017-07-24 Thread Paul Schreiner
I took a quick look, but since I don't have any .CDS files, it didn't work 
properly.
But a couple of observations:#1) I'd add Option Explicit to the start of the 
module, to ensure all variables are declared.#2) It's curious that your  
editors aren't showing a compile error on "Dim Dirpath as String" since it's 
being declared twice.
It's also possible that since you're using a "On Error Resume Next" statement, 
but not using "On Error Goto 0" to reset it, then you're getting an error, but 
not displaying it.I'd also change:Dirpath = Dir(dpath + "*.CDS")to:Dirpath = 
Dir(dpath & "*.CDS")since "+" is an arithmetic function and "&" is a 
concatenation of strings.VBA SHOULD handle it properly, but I don't like to 
make assumptions like that.
I'd set a breakpoint at the Dirpath = Dir(...statement and step through it and 
watch what happens to Dirpath.I also like to add a "Watch" of:Err.Number & ": " 
& Err.Description (with scope of "all modules") so that I can see if an error 
is being caught but not halting due to the "On Error Resume Next" statement.

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
- 

On Monday, July 24, 2017 10:03 AM, Secret Shot  wrote:
 

 Hi Experts, 
I have created a macro to automate my work. 
Its working fine on my laptop, but if i am using same file for same folder in 
my dasktop, its skip a action. its not giving any error but also not doing what 
it soupose to do. 
Below is the line of code which is not getting excuted, means the value of path 
is not getting assined in my define variable, so my loop is not working. 
however its working fine on my laptop but not on desktop, wheree all the 
enviroment is same (window, MS office, same references etc. )
please help..
dpath = tpath & "\" & nws.Name & "\"Dirpath = Dir(dpath + "*.CDS")Do While 
Len(Dirpath) > 0ActiveCell.Formula = DirpathActiveCell.Offset(1, 
0).SelectDirpath = Dir()Loop 

attaching the file with full code.
-- 
Pankaj Pandey
Bhopal-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Find out the value of the cell based on row and column

2017-07-21 Thread Paul Schreiner
use:=INDIRECT(E3) 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
- 

On Friday, July 21, 2017 6:53 AM, Vijayendra Rao  
wrote:
 

 Hi Experts,
I have cell value called $A$5 (Will change based on selection of active cell) 
and need to get the suitable function which should reflect the value of the 
$A$5 (will change). Attached is the excel file, request you to help on the same.
Regards,
Vijayendra

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: Fwd: $$Excel-Macros$$ for multiple condition to calculate A SIMPLE RESULT

2017-07-10 Thread Paul Schreiner
I'm not sure I COMPLETELY understand, but at least I can give it a start.
first: your description keeps saying "BD = ..."But your workbook has a column 
heading "DB", so I'm assuming one or the other is transposed.
also, .06% is .0006  do you really mean "B Value" * .06  (formula: =B2 * 
.06)or"B Value" * .06% (formula: =B2 * .06% is the same as =B2 * .0006)The 
difference for row 2 is 134274 or 1342.74

I think the easiest for you to read and follow would be a nested "if" statement:
in cell N2:=IF(AND(A2="NS",H2="C/F"),F2*0.06,
 IF(AND(A2="NS",C2="C/F"),K2*0.06,
 IF(AND(A2="NS",C2<>"C/F"),(F2+K2)*0.06,
IF(AND(A2="BNIST",H2="C/F"),F2*0.05,
 IF(AND(A2="BNIST",C2="C/F"),K2*0.05,
 IF(AND(A2="BNIST",C2<>"C/F"),(F2+K2)*0.05,
"other")) 
I'm not sure what you mean by:"FOR THE OTHER PERSONS IT TAKES OTHER CALCULATION 
AL WELL"
do you mean "AS WELL", meaning that other combinations have alternate 
calculations?
If so, you can add the appropriate alternatives to the above formula

BTW: in case you are unaware, Alt-Enter allows you to move part of the formula 
to the next line,allowing a long formula such as this to be easier to read!
hope this helps.
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
- 

On Monday, July 10, 2017 2:31 AM, Sanjib Chatterjee 
 wrote:
 

 please help

-- Forwarded message --
From: Sanjib Chatterjee 
Date: Sat, Jul 8, 2017 at 1:22 PM
Subject: $$Excel-Macros$$ for multiple condition to calculate A SIMPLE RESULT
To: excel-macros 


Dear Sir / Madam,
Please see the attachment and 


Please help me how to solve the problem,
I want to calculate "BD"

if person says "NS"  IF SELL DATE " C/F" , BD = B Value * .06%if person says 
"NS"  IF Buy DATE " C/F" , BD = S Value * .06%
if person says "NS"  IF Buy DATE " not equal to C/F" , BD = (B Value + S value) 
* .06%

if person says "BNIST"  IF SELL DATE " C/F" , BD = B Value * .05%if person says 
"BNIS"  IF Buy DATE " C/F" , BD = S Value * .05%
if person says "BNIS"  IF Buy DATE " not equal to C/F" , BD = (B Value + S 
value) * .05%

FOR THE OTHER PERSONS IT TAKES OTHER CALCULATION AL WELL
I HOPE I MAKE YOU UNDERSTAND WHAT I WANT
PLEASE HELP ME

Thanking you in advance



Sanjib Chatterjee




-- 
--- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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 https://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? An

Re: $$Excel-Macros$$ Urgent Opening for Ab-initio with AWS JAVA back ground : Richmond VA

2017-06-22 Thread Paul Schreiner
Sir:  I realize you are new...But if you read the Forum RULES, #4 specifically 
states:4) Jobs posting is not allowed.
I have nearly 100 users that I've had to block from my email because they 
joined for the sole purpose of head-hunting.That's not what this site is about 
and not why I joined the site and I resent spending the time managing my 
blocked email list when I could be helping users with legitimate issues.
If you are in need of assistance with Excel macros, then welcome!If you're 
looking for employees, well it ought to make a potential employee wonder if 
he/she can trust a company that cannot be bothered to follow the rules...
Just an observation...
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
- 

On Thursday, June 22, 2017 5:39 PM, Kamal Paul  
wrote:
 

 Hi All ,i have an urgent Opening for ab-initio with Java Back ground. please 
find the details for the Position and Reply me if you have available consultant 
for the same.

 Title : Ab-nitio with AWS java 
Job Type : Contractual
location : Richmond VADuration : 6 months  







· Work involves transferring from DDE to AWS using Ab Initio – Need 
candidates with strong Ab Initio background with java skills· Need 
folks with AWS knowledge with scripting  to create infrastructure, should have 
Java background 


 Kamal PaulTechnical Recruiter (Desk):610-590-1511 
Gtalk : recruiter.kp...@gmail.com-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need Help: Summary data from sheets in the same workbook

2017-06-20 Thread Paul Schreiner
If you can give me a larger sample of data, I can try to work on 
something.Since it sounds like you have no background with VBA programming, 
I'll try to develop an Excel-Function solution. 
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
- 

On Tuesday, June 20, 2017 7:20 AM, Mustapha LMIDMANI 
 wrote:
 

 I have fixed N° of product and fixed N° of customers. 
It would be great if I can modify customer and product list in separated sheet 
if I want to add or remove something :)
Many thanks Paul​

Regards
LMIDMANI MustaphaIndustrial engineerlmidmani.musta...@gmail.comp Be green – 
leave it on the screen
NOTICE: This privileged and confidential email is intended only for the 
individual or entity to whom it is addressed. With regard to all others, any 
action related with this email as well as any reading, reproduction, 
transmission and/or dissemination in whole or in part of the information 
included in this email is prohibited. If you are not the addressee, immediately 
return the email to sender prior to destroying all copies. Even if this email 
is believed to be free from any virus, it is the responsibility of the 
recipient to make sure that it is virus exempt. Our communications to you may 
contain confidential information or information protected under 
solicitor-client privilege. Please advise if you wish us to use a mode of 
communication other than regular, unsecured e-mail in our communications with 
you

On 20 June 2017 at 11:15, Paul Schreiner  wrote:

adjective: dynamic1. (of a process or system) characterized by constant change, 
activity, or progress.
That's why I defined the meaning in my question:
How "dynamic" is your data?Is the number of Products variable or fixed?is the 
number of Customers variable or fixed?

Meaning, does the number of customers or products change from 
month-to-month.does their position on the sheet change?Are there more columns 
or rows?
If each month is a fixed template and has a specific number of products and 
customers(which I doubt)then you can Name ranges and refer those Named Ranges.
If the layout changes, while it is a cumbersome layout, it ought to be possible 
to write a macro that searches through the data and collects the data.

 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
-- --- 

On Tuesday, June 20, 2017 4:11 AM, Mustapha LMIDMANI 
 wrote:
 

 Sorry Paul, I didn't get what you mean by "dynamic". 

Regards
LMIDMANI MustaphaIndustrial engineerlmidmani.musta...@gmail.comp Be green – 
leave it on the screen
NOTICE: This privileged and confidential email is intended only for the 
individual or entity to whom it is addressed. With regard to all others, any 
action related with this email as well as any reading, reproduction, 
transmission and/or dissemination in whole or in part of the information 
included in this email is prohibited. If you are not the addressee, immediately 
return the email to sender prior to destroying all copies. Even if this email 
is believed to be free from any virus, it is the responsibility of the 
recipient to make sure that it is virus exempt. Our communications to you may 
contain confidential information or information protected under 
solicitor-client privilege. Please advise if you wish us to use a mode of 
communication other than regular, unsecured e-mail in our communications with 
you

On 19 June 2017 at 15:41, Paul Schreiner  wrote:

That didn't answer my questions. 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
-- --- 

On Monday, June 19, 2017 7:18 AM, Mustapha LMIDMANI 
 wrote:
 

 Hi dears,
Thanks for your feedback guys.
Paul: sheets are filled weekly (manually). and the dashboard have to reflect 
data on sheets by selecting Customer and month 
thanks in advance

Regards
LMIDMANI MustaphaIndustrial engineerlmidmani.musta...@gmail.comp Be green – 
leave it on the screen
NOTICE: This privileged and confidential email is intended only for the 
individual or entity to whom it is addressed. With regard to all others, any 
action related with this email as well as any reading, reproduction, 
transmission and/or dissemination in whole or in part of the information 
included in this email is prohibited. If you are not the addressee, immediately 
return the email to sender prio

Re: $$Excel-Macros$$ Need Help: Summary data from sheets in the same workbook

2017-06-20 Thread Paul Schreiner
adjective: dynamic1. (of a process or system) characterized by constant change, 
activity, or progress.
That's why I defined the meaning in my question:
How "dynamic" is your data?Is the number of Products variable or fixed?is the 
number of Customers variable or fixed?

Meaning, does the number of customers or products change from 
month-to-month.does their position on the sheet change?Are there more columns 
or rows?
If each month is a fixed template and has a specific number of products and 
customers(which I doubt)then you can Name ranges and refer those Named Ranges.
If the layout changes, while it is a cumbersome layout, it ought to be possible 
to write a macro that searches through the data and collects the data.

 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
- 

On Tuesday, June 20, 2017 4:11 AM, Mustapha LMIDMANI 
 wrote:
 

 Sorry Paul, I didn't get what you mean by "dynamic". 

Regards
LMIDMANI MustaphaIndustrial engineerlmidmani.musta...@gmail.comp Be green – 
leave it on the screen
NOTICE: This privileged and confidential email is intended only for the 
individual or entity to whom it is addressed. With regard to all others, any 
action related with this email as well as any reading, reproduction, 
transmission and/or dissemination in whole or in part of the information 
included in this email is prohibited. If you are not the addressee, immediately 
return the email to sender prior to destroying all copies. Even if this email 
is believed to be free from any virus, it is the responsibility of the 
recipient to make sure that it is virus exempt. Our communications to you may 
contain confidential information or information protected under 
solicitor-client privilege. Please advise if you wish us to use a mode of 
communication other than regular, unsecured e-mail in our communications with 
you

On 19 June 2017 at 15:41, Paul Schreiner  wrote:

That didn't answer my questions. 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
-- --- 

On Monday, June 19, 2017 7:18 AM, Mustapha LMIDMANI 
 wrote:
 

 Hi dears,
Thanks for your feedback guys.
Paul: sheets are filled weekly (manually). and the dashboard have to reflect 
data on sheets by selecting Customer and month 
thanks in advance

Regards
LMIDMANI MustaphaIndustrial engineerlmidmani.musta...@gmail.comp Be green – 
leave it on the screen
NOTICE: This privileged and confidential email is intended only for the 
individual or entity to whom it is addressed. With regard to all others, any 
action related with this email as well as any reading, reproduction, 
transmission and/or dissemination in whole or in part of the information 
included in this email is prohibited. If you are not the addressee, immediately 
return the email to sender prior to destroying all copies. Even if this email 
is believed to be free from any virus, it is the responsibility of the 
recipient to make sure that it is virus exempt. Our communications to you may 
contain confidential information or information protected under 
solicitor-client privilege. Please advise if you wish us to use a mode of 
communication other than regular, unsecured e-mail in our communications with 
you

On 19 June 2017 at 10:53, Paul Schreiner  wrote:

There's not enough information for me to guess how you want the summary 
populated.
How "dynamic" is your data?Is the number of Products variable or fixed?is the 
number of Customers variable or fixed?

  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
-- --- 

On Sunday, June 18, 2017 11:53 AM, Mustapha LMIDMANI 
 wrote:
 

 
Hi Guys,
I'd like to know if there is any possibility with functions to fill my Summary 
sheet from montly report sheet in the attached sample. or I need to create a 
macro?
By selecting Customer and month (Blue cells) filling the indicator .
If I have to code a macro, can somone help me ?
Thanks in advanceMustapha

-- 
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 

Re: $$Excel-Macros$$ Need Help: Summary data from sheets in the same workbook

2017-06-19 Thread Paul Schreiner
That didn't answer my questions. 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
- 

On Monday, June 19, 2017 7:18 AM, Mustapha LMIDMANI 
 wrote:
 

 Hi dears,
Thanks for your feedback guys.
Paul: sheets are filled weekly (manually). and the dashboard have to reflect 
data on sheets by selecting Customer and month 
thanks in advance

Regards
LMIDMANI MustaphaIndustrial engineerlmidmani.musta...@gmail.comp Be green – 
leave it on the screen
NOTICE: This privileged and confidential email is intended only for the 
individual or entity to whom it is addressed. With regard to all others, any 
action related with this email as well as any reading, reproduction, 
transmission and/or dissemination in whole or in part of the information 
included in this email is prohibited. If you are not the addressee, immediately 
return the email to sender prior to destroying all copies. Even if this email 
is believed to be free from any virus, it is the responsibility of the 
recipient to make sure that it is virus exempt. Our communications to you may 
contain confidential information or information protected under 
solicitor-client privilege. Please advise if you wish us to use a mode of 
communication other than regular, unsecured e-mail in our communications with 
you

On 19 June 2017 at 10:53, Paul Schreiner  wrote:

There's not enough information for me to guess how you want the summary 
populated.
How "dynamic" is your data?Is the number of Products variable or fixed?is the 
number of Customers variable or fixed?

  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
-- --- 

On Sunday, June 18, 2017 11:53 AM, Mustapha LMIDMANI 
 wrote:
 

 
Hi Guys,
I'd like to know if there is any possibility with functions to fill my Summary 
sheet from montly report sheet in the attached sample. or I need to create a 
macro?
By selecting Customer and month (Blue cells) filling the indicator .
If I have to code a macro, can somone help me ?
Thanks in advanceMustapha

-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://groups.google.

Re: $$Excel-Macros$$ Need Help: Summary data from sheets in the same workbook

2017-06-19 Thread Paul Schreiner
There's not enough information for me to guess how you want the summary 
populated.
How "dynamic" is your data?Is the number of Products variable or fixed?is the 
number of Customers variable or fixed?

  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
- 

On Sunday, June 18, 2017 11:53 AM, Mustapha LMIDMANI 
 wrote:
 

 
Hi Guys,
I'd like to know if there is any possibility with functions to fill my Summary 
sheet from montly report sheet in the attached sample. or I need to create a 
macro?
By selecting Customer and month (Blue cells) filling the indicator .
If I have to code a macro, can somone help me ?
Thanks in advanceMustapha

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Required fastest vlookup formula

2017-06-12 Thread Paul Schreiner
I have previously dealt with similar situations.
In one case, I have an application that has over  164,000 rows and 74 
columns.Frequently, queries and reports retrieve records based on multiple 
columns.
VLOOKUP became much too time consuming, but due to the volatile nature of the 
data, utilizing a database like Access or Oracle wasn't practical.(although I 
do upload the data to an Oracle database for other purposes).
I like to utilize the VBA Dictionary Object.I loop through the data one time 
and load multiple Dictionaries.sometimes using multiple field values to define 
the "index" for the dictionary.(which is how I accomplish matching multiple 
columns for a vlookup)
By declaring the object as "Public", the Dictionary is available for the 
duration of the Excel session and doesn't have to be re-loaded.
It goes something like this:Public Dict_Material
Sub Load_Dictdim nRow, nRows   Set Dict_Material = 
CreateObject("Scripting.Dictionary")   nRows = 
application.worksheetfunction.counta(Sheets("Data").Range("A:A"))      for nRow 
= 2 to nRows  if (not 
Dict_Material.exists(Sheets("Data").Cells(nRow,"F").Value)) then  
dict_Material.Add Sheets("Data").Cells(nRow,"F").Value, nRow  else  
    dict_Material.item(Sheets("Data").Cells(nRow,"F").Value) = _  
dict_Material.item(Sheets("Data").Cells(nRow,"F").Value) & "," & nRow  end 
if   next nRowEnd Sub
Now, Dict_Material contains a comma-separated list of all rows that contain 
each value from column "F"so, to look up all records for a specific value, I 
use something like:
SearchMatl = "12345"if (dict_Material.exists(SearchMatl)) then   dArray = 
split(dict_Material.item(SearchMatl),",")   FirstRow = darray(0)else   msgbox 
"Material " & SearchMatl & " Not Found"end 
ifPaul-
“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
- 

On Sunday, June 11, 2017 4:41 AM, karthik N  wrote:
 

 Hi Friends,
We have more than 3 lacks data in our excel,so put the vlookup formula it will 
take huge time.
Please help as the fastest vlookup formula or VBA 
 
RegardsKarthik.N

|  | Virus-free. www.avast.com  |

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ simple macro??

2017-06-06 Thread Paul Schreiner
There are several ways to name a range.Using a version similar to Excel 2010:
First:  When you select a single Cell, there is a box in the menu/icon area 
that shows the cell address:(to the left of the box that shows the cell 
contents)Like:  A2
highlight the range (say: A2 through A101)then, in that address box, type the 
name of the range.
The second way is to go to the Formula menu/tab and look for the Defined Names 
section.You can use the Wizards in the Name Manager or the Defined Name 
selection to define range names.
Note:  You can associate a range name to a single worksheet or the entire 
workbook.You can have only one range named any specific name if it is 
associated to the workbook.But each sheet can have a range associated with the 
same name.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
- 

On Tuesday, June 6, 2017 3:07 PM, Frits S  
wrote:
 

 Thank you for your solution.
How can I name the range: "...in a column and name the range "Input""?

Op dinsdag 6 juni 2017 18:25:43 UTC+2 schreef Paul Schreiner:
You're saying that F77 is a calculation that uses the value of F5.You want to 
change F5 from 1 to 100 and do WHAT with the resulting value in F77?
Are you saying that you want to simply put 1-100 in one column and then show in 
an adjacent column the result when this number is put into F5?
Is the formula in F77 complex?
Yes, this could be done as you ask.
If you put the starting values (1-100) in a column and name the range 
"Input",then this macro will cycle through the starting values, put them each 
in cell F5and then copy the value from F77 into the adjacent cell:
Sub SaveCalc()
    Dim Rng As Range
    For Each Rng In Range("Input")
    If (Rng.Value & "X" <> "X") Then
    Range("F5").Value = Rng.Value
    Rng.Offset(0, 1).Value = Range("F77").Value
    End If
    Next Rng
End SubPaul-- ---
“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
-- --- 

On Tuesday, June 6, 2017 11:48 AM, Frits S  wrote:
 

 I need a macro for a simple question:
In my Excel sheet I have a value in cell F5 which gives a result in cell 
F77.Now I want to calculate each value in F5 (from 1 to 100) to the associated 
value in cell F77 in two new columns: value F5=1->value F77=..., value 
F5=2->value F77=... (etc.)
Is this possible in VBA?

-- 
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 https://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 subscrib

Re: $$Excel-Macros$$ simple macro??

2017-06-06 Thread Paul Schreiner
You're saying that F77 is a calculation that uses the value of F5.You want to 
change F5 from 1 to 100 and do WHAT with the resulting value in F77?
Are you saying that you want to simply put 1-100 in one column and then show in 
an adjacent column the result when this number is put into F5?
Is the formula in F77 complex?
Yes, this could be done as you ask.
If you put the starting values (1-100) in a column and name the range 
"Input",then this macro will cycle through the starting values, put them each 
in cell F5and then copy the value from F77 into the adjacent cell:
Sub SaveCalc()
    Dim Rng As Range
    For Each Rng In Range("Input")
    If (Rng.Value & "X" <> "X") Then
    Range("F5").Value = Rng.Value
    Rng.Offset(0, 1).Value = Range("F77").Value
    End If
    Next Rng
End SubPaul-
“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
- 

On Tuesday, June 6, 2017 11:48 AM, Frits S  
wrote:
 

 I need a macro for a simple question:
In my Excel sheet I have a value in cell F5 which gives a result in cell 
F77.Now I want to calculate each value in F5 (from 1 to 100) to the associated 
value in cell F77 in two new columns: value F5=1->value F77=..., value 
F5=2->value F77=... (etc.)
Is this possible in VBA?

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Stop the code from Running when Selecting Row

2017-06-05 Thread Paul Schreiner
>From the looks of your macro, I think we need to help understand the 
>SelectionChange event.
#1:  the "Selection" is passed to the event sub through the "Target" 
variable.So.. Target IS Selection!
It is an array, but a single cell gets passed as an array of (1).
What I usually do is cycle through the selection by using:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim Targ As Range
    For Each Targ In Target
    '...
    '
    '
    Next Targend sub
Second: [B2:B25] is not a legal construct.You're probably looking for: 
Range("B2:B25")
Now, to your question.
If you select an entire row, Target.Count will be a count of all the cells in 
the row.For Excel 2007 and beyond, that is 256.
So, you COULD add:
If (Target.Count > 100) then exit sub
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
- 

On Monday, June 5, 2017 1:36 PM, Carlisle Flores-Garay 
 wrote:
 

 I have this file from a previous discussion and I was wondering if there is a 
way to stop the code from running when I select the whole row so that I can 
copy and paste without having the window pop up every time. 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ why excel is slow when we run macro

2017-06-05 Thread Paul Schreiner
There are LOTS of reasons why macros can be slow.And.. "slow" is relative.
I have a workbook with over 130,000 rows and 72 columns.
I can report summaries for these rows in SECONDS.
my macro USED to take several minutes, but I simplified the code and found that 
it was looping through the lines even after I found what I was looking for!
Plus, I reduced the number of iterations by changing the order of the search.
Other things like using Copy/Paste instead of assigning the value of one cell 
from another is VERY time consuming because it copies all of the cell 
formatting to the clipboard before pasting it to the new cell.
So.. what you mean by "excel is slow" and "when we run macros"... could have 
LOTS of meanings. 
It's going to depend on your specific situation.
if you want to send me the file, I'd be glad to take a look and see if I can 
figure out what is going on.
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
- 

On Sunday, June 4, 2017 6:29 AM, "paramdeepwa...@gmail.com" 
 wrote:
 

 why excel is slow when we run macros-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need Help please - Type Mismatch on rows insert macro

2017-06-02 Thread Paul Schreiner
Let's say that you have 100 rows of data. "bottom" ends up being 100.so your 
Rows statement results in:Rows(R:100).insert shift:=xldown
I think it needs to beRows(100:100).insert shift:=xldown
so you'd use:Rows(r & ":" & r).Insert Shift:=xlDown
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
- 

On Friday, June 2, 2017 10:07 AM, Johnny  wrote:
 

 Trying to insert a blank row between each line. The line starting with: Rows 
is getting a type mismatch error.
-Dim
 bottom As Integer
Dim r As Integer
bottom = Cells(Rows.Count, "A").End(xlUp).Row
For r = bottom To 2 Step -1
    Rows("r:" & r).Insert Shift:=xlDown
Next 
r--I
 appreciate the help!
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need help in Macro to convert table into dump.

2017-06-01 Thread Paul Schreiner
In THAT case:
If you name a range "Result" and have it include the "summary" table without 
the column headings or phone numbersB4:G9 in your sample
Then, name a range called "Data" that includes the original "Data" without the 
column headingsL4:M1000 in your example.
Then you can use a macro like this to rebuild the detailed list:

Sub Restore_Data()
    Dim nRows, rCell As Range, nCol, nRow, dRow, dCol
    Dim nCnt
    ActiveSheet.Range("Data").ClearContents
    dCol = ActiveSheet.Range("Data").Column
    dRow = ActiveSheet.Range("Data").Row - 1
    For Each rCell In ActiveSheet.Range("Result").Cells
    If (Int(rCell.Value) > 0) Then
    For nCnt = 1 To rCell.Value
    dRow = dRow + 1
    ActiveSheet.Cells(dRow, dCol).Value = 
ActiveSheet.Cells(rCell.Row, "A").Value
    ActiveSheet.Cells(dRow, dCol + 1).Value = ActiveSheet.Cells(3, 
rCell.Column).Value
    Next nCnt
    End If
    Next rCell
    MsgBox "Finished"
End Sub
 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
- 

On Thursday, June 1, 2017 1:42 PM, Secret Shot  wrote:
 

 Dear Paul,
I appreciate your quick response, However when i say raw data it means just 
simple table in Excel which i have shown in attached excel sheet only in column 
L and M.
So you can consider it as requirement or data rearrangement from table 1 
(Column A to G) to table 2 (Column L to M).

I hope now i can get required help. 

Thanks in advance.   

On Thu, Jun 1, 2017 at 8:17 PM, Paul Schreiner  wrote:

There is no standard format for "Raw Data".It depends on the original 
Application used to CREATE the source of data.Some systems output ASCII (text) 
files Some are tab delimited.Others are comma delimited (csv).
The mechanism you used to read in the "raw data" used known characteristics of 
the data to determine how it is to be interpreted.
Without knowing the characteristics of the "raw data", it would be impossible 
to reverse-engineer the file.
It's like saying:  "I'm standing outside of my home, tell me how I got here"The 
answer requires first knowing where you started and what options are available 
to get from the start to the end.Lots of options are AVAILABLE, but if your 
starting point is two streets away, the use of an airplane is unlikely. 
Teleportation is WAY cooler, and should remain in consideration for that 
reason! :)
More details are required. 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
-- --- 

On Thursday, June 1, 2017 10:20 AM, Secret Shot  
wrote:
 

 Dear Team,
I have one very large excel table which i made from Raw data, accidentally raw 
data has been deleted and the only option i have is that table to convert back 
in raw data.
Its about my job so pls help, i have attached of the sample of what i am 
talking about. if anyone can me in writing a macro which can create raw data 
basis on the count in front of number and considering their header.   

Please help
-- 
Pankaj Pandey
Bhopal-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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

Re: $$Excel-Macros$$ Need help in Macro to convert table into dump.

2017-06-01 Thread Paul Schreiner
There is no standard format for "Raw Data".It depends on the original 
Application used to CREATE the source of data.Some systems output ASCII (text) 
files Some are tab delimited.Others are comma delimited (csv).
The mechanism you used to read in the "raw data" used known characteristics of 
the data to determine how it is to be interpreted.
Without knowing the characteristics of the "raw data", it would be impossible 
to reverse-engineer the file.
It's like saying:  "I'm standing outside of my home, tell me how I got here"The 
answer requires first knowing where you started and what options are available 
to get from the start to the end.Lots of options are AVAILABLE, but if your 
starting point is two streets away, the use of an airplane is unlikely. 
Teleportation is WAY cooler, and should remain in consideration for that 
reason! :)
More details are required. 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
- 

On Thursday, June 1, 2017 10:20 AM, Secret Shot  
wrote:
 

 Dear Team,
I have one very large excel table which i made from Raw data, accidentally raw 
data has been deleted and the only option i have is that table to convert back 
in raw data.
Its about my job so pls help, i have attached of the sample of what i am 
talking about. if anyone can me in writing a macro which can create raw data 
basis on the count in front of number and considering their header.   

Please help
-- 
Pankaj Pandey
Bhopal-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Links

2017-05-26 Thread Paul Schreiner
I suspect it's getting an error but the"on error resume next" line is making it 
ignore the error.
Did you change the macro to open your data file?DatFldr = "C:\temp\vba\Savla\"
DatFile = "DataFile.xlsb"
??
Add a line after the "If/Endif" that has the Workbooks.Open line.
the line should read:On Error Goto 0

or maybe put it right BEFORE the workbooks.Open line, so you know if it fails. 
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
- 

On Friday, May 26, 2017 12:49 PM, KAUSHIK SAVLA  
wrote:
 

 Macro is just running and not fetching any outcome. 
Regards,Kaushik
On May 26, 2017 16:11, "'Martin George' via MS EXCEL AND VBA MACROS" 
 wrote:


------ --
On Thu, 5/25/17, Paul Schreiner  wrote:

 Subject: Re: $$Excel-Macros$$ Links
 To: "excel-macros@googlegroups.com " 
 Date: Thursday, May 25, 2017, 8:17 PM

 The workbook that you add the VBA macro to is
 identified as "ThisWorkbook".
 so, in the
 macro:

 ThisWorkbook.Sheets(1).Range(" A2:Z65000").ClearContents
 clears
 the contents of the first sheet in
 "Thisworkbook"then:

 ThisWorkbook.Sheets(1).Cells( nRow, "A").Value =
 Sht.Name

 ThisWorkbook.Sheets(1).Cells( nRow, "B").Value =
 Rng.Address 

 If (InStr(1, Rng.Formula, "[") > 0) Then

 ThisWorkbook.Sheets(1).Cells( nRow, "C").Value =
 "'" & Rng.Formula

 Else

 ThisWorkbook.Sheets(1).Cells( nRow, "D").Value =
 "'" & Rng.Formula

 End Ifputs
 the listing on the first sheet of the workbook.
 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
 -- ---



   On Thursday, May 25, 2017 12:50 PM,
 KAUSHIK SAVLA  wrote:


  Hi Paul, 
 Macro got run and gave finished
 message. 
 Where can I
 find the desired output? 
 Regards, Kaushik
 On May 25, 2017 19:06,
 "Paul Schreiner" 
 wrote:
 OK.Spent
 WAY longer on this than I should have.
 I
 should've had you create a "dummy" set of
 workbooks that looked like yours instead of me spending an
 hour+ guessing what yours looks like.
 So,
 I put together 20 separate workbooks with data.then
 added 15 sheets to the "data" workbook and
 created 150 random links to both the 20 external workbooks
 and  the internal worksheets.
 It took about 15 minutes
 to write some code to look at the formulas and determine
 which are internal/external formulas.
 It
 DOESN'T distinguish between calculations and other
 formulas.
 Since I don't know what you want to do with
 it, and how you want it to list the matches, I'll just
 give you what I have and you can decide what you want to
 change.
 If it isn't what you
 want, then send me a sample to write against.
 Here it is:
 Sub
 Link_Summary()

 Dim DatFldr, DatFile

 Dim aLinks

 Dim nRow

 ' Location
 and name of main Data file.

 DatFldr = "C:\temp\vba\Savla\"

 DatFile = "DataFile.xlsb"

 On Error Resume Next

 Workbooks(DatFile).Activate

 If (Err.Number <> 0) Then

 Workbooks.Open DatFldr & DatFile, UpdateLinks:=False

 Err.Clear

 End If

 nRow = 1

 ThisWorkbook.Sheets(1).Range("
 A2:Z65000").ClearContents

 Dim Sht As Worksheet, Rng As Range

 For Each Sht In ActiveWorkbook.Sheets

 For Each Rng In Sht.UsedRange

 If (Rng.Value & "X" <> Rng.Formula &
 "X") Then

 nRow = nRow + 1

 ThisWorkbook.Sheets(1).Cells( nRow, "A").Value =
 Sht.Name

 ThisWorkbook.Sheets(1).Cells( nRow, "B").Value =
 Rng.Address

 If (InStr(1, Rng.Formula, "[") > 0) Then

 ThisWorkbook.Sheets(1).Cells( nRow, "C").Value =
 "'" & Rng.Formula

 Else

 ThisWorkbook.Sheets(1).Cells( nRow, "D").Value =
 "'" & Rng.Formula

 End If

 End If

 Next Rng

 Next Sht

 ThisWorkbook.Activate

 MsgBox "Finished"End
 Sub
 Paul-- 
 ---
 “Do all the good you can,
 By all the means you can,
 In
 all the ways you can,
 In all the 

Re: $$Excel-Macros$$ Links

2017-05-25 Thread Paul Schreiner
The workbook that you add the VBA macro to is identified as "ThisWorkbook".
so, in the macro:
    ThisWorkbook.Sheets(1).Range("A2:Z65000").ClearContents
clears the contents of the first sheet in "Thisworkbook"then:
    ThisWorkbook.Sheets(1).Cells(nRow, "A").Value = Sht.Name
    ThisWorkbook.Sheets(1).Cells(nRow, "B").Value = Rng.Address 
    If (InStr(1, Rng.Formula, "[") > 0) Then
    ThisWorkbook.Sheets(1).Cells(nRow, "C").Value = "'" & 
Rng.Formula
    Else
    ThisWorkbook.Sheets(1).Cells(nRow, "D").Value = "'" & 
Rng.Formula
    End Ifputs the listing on the first sheet of the workbook.
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
- 

On Thursday, May 25, 2017 12:50 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul, 
Macro got run and gave finished message. 
Where can I find the desired output? 
Regards, Kaushik
On May 25, 2017 19:06, "Paul Schreiner"  wrote:

OK.Spent WAY longer on this than I should have.
I should've had you create a "dummy" set of workbooks that looked like yours 
instead of me spending an hour+ guessing what yours looks like.
So, I put together 20 separate workbooks with data.then added 15 sheets to the 
"data" workbook and created 150 random links to both the 20 external workbooks 
and  the internal worksheets.
It took about 15 minutes to write some code to look at the formulas and 
determine which are internal/external formulas.
It DOESN'T distinguish between calculations and other formulas.
Since I don't know what you want to do with it, and how you want it to list the 
matches, I'll just give you what I have and you can decide what you want to 
change.
If it isn't what you want, then send me a sample to write against.
Here it is:
Sub Link_Summary()
    Dim DatFldr, DatFile
    Dim aLinks
    Dim nRow
    ' Location and name of main Data file.
    DatFldr = "C:\temp\vba\Savla\"
    DatFile = "DataFile.xlsb"
    On Error Resume Next
    Workbooks(DatFile).Activate
    If (Err.Number <> 0) Then
    Workbooks.Open DatFldr & DatFile, UpdateLinks:=False
    Err.Clear
    End If
    nRow = 1
    ThisWorkbook.Sheets(1).Range(" A2:Z65000").ClearContents
    Dim Sht As Worksheet, Rng As Range
    For Each Sht In ActiveWorkbook.Sheets
    For Each Rng In Sht.UsedRange
    If (Rng.Value & "X" <> Rng.Formula & "X") Then
    nRow = nRow + 1
    ThisWorkbook.Sheets(1).Cells( nRow, "A").Value = Sht.Name
    ThisWorkbook.Sheets(1).Cells( nRow, "B").Value = Rng.Address
    If (InStr(1, Rng.Formula, "[") > 0) Then
    ThisWorkbook.Sheets(1).Cells( nRow, "C").Value = "'" & 
Rng.Formula
    Else
    ThisWorkbook.Sheets(1).Cells( nRow, "D").Value = "'" & 
Rng.Formula
    End If
    End If
    Next Rng
    Next Sht
    ThisWorkbook.Activate
    MsgBox "Finished"End Sub
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
-- --- 

On Thursday, May 25, 2017 2:51 AM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul
You are correct,  I don't want to break links. Not possible to send workbook as 
it contains sensitive confidential information. 
Just suppose there is a worksheet named A in workbook.  It is linked to 
external workbook named say X,  Y and it is also linked to worksheets in 
workbook say name B,  C,  D,  E in different cells. 
What I want is in new workbook it should displayWorksheet A -  Linked from 
external workbook X,  Y and internal worksheets B, C,  D,  E. 
This process repeat for all worksheets within a workbook. 
Regards, Kaushik Savla8373916768
On May 25, 2017 00:53, "Paul Schreiner"  wrote:

It sounds like you're not wanting to REMOVE the links,but basically generate a 
list of worksheets and the name of the external workbooks linked to those 
sheets.
That doesn't sound difficult.
But the error you're suggesting doesn't make sense because you're not "pasting" 
anything (with the macro I suggested).
It would take me at least an hour to TRY to create a file set that MIGHT 
duplicate your structure. Is i

Re: $$Excel-Macros$$ Links

2017-05-25 Thread Paul Schreiner
OK.Spent WAY longer on this than I should have.
I should've had you create a "dummy" set of workbooks that looked like yours 
instead of me spending an hour+ guessing what yours looks like.
So, I put together 20 separate workbooks with data.then added 15 sheets to the 
"data" workbook and created 150 random links to both the 20 external workbooks 
and  the internal worksheets.
It took about 15 minutes to write some code to look at the formulas and 
determine which are internal/external formulas.
It DOESN'T distinguish between calculations and other formulas.
Since I don't know what you want to do with it, and how you want it to list the 
matches, I'll just give you what I have and you can decide what you want to 
change.
If it isn't what you want, then send me a sample to write against.
Here it is:
Sub Link_Summary()
    Dim DatFldr, DatFile
    Dim aLinks
    Dim nRow
    ' Location and name of main Data file.
    DatFldr = "C:\temp\vba\Savla\"
    DatFile = "DataFile.xlsb"
    On Error Resume Next
    Workbooks(DatFile).Activate
    If (Err.Number <> 0) Then
    Workbooks.Open DatFldr & DatFile, UpdateLinks:=False
    Err.Clear
    End If
    nRow = 1
    ThisWorkbook.Sheets(1).Range("A2:Z65000").ClearContents
    Dim Sht As Worksheet, Rng As Range
    For Each Sht In ActiveWorkbook.Sheets
    For Each Rng In Sht.UsedRange
    If (Rng.Value & "X" <> Rng.Formula & "X") Then
    nRow = nRow + 1
    ThisWorkbook.Sheets(1).Cells(nRow, "A").Value = Sht.Name
    ThisWorkbook.Sheets(1).Cells(nRow, "B").Value = Rng.Address
    If (InStr(1, Rng.Formula, "[") > 0) Then
    ThisWorkbook.Sheets(1).Cells(nRow, "C").Value = "'" & 
Rng.Formula
    Else
    ThisWorkbook.Sheets(1).Cells(nRow, "D").Value = "'" & 
Rng.Formula
    End If
    End If
    Next Rng
    Next Sht
    ThisWorkbook.Activate
    MsgBox "Finished"End Sub
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
- 

On Thursday, May 25, 2017 2:51 AM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul
You are correct,  I don't want to break links. Not possible to send workbook as 
it contains sensitive confidential information. 
Just suppose there is a worksheet named A in workbook.  It is linked to 
external workbook named say X,  Y and it is also linked to worksheets in 
workbook say name B,  C,  D,  E in different cells. 
What I want is in new workbook it should displayWorksheet A -  Linked from 
external workbook X,  Y and internal worksheets B, C,  D,  E. 
This process repeat for all worksheets within a workbook. 
Regards, Kaushik Savla8373916768
On May 25, 2017 00:53, "Paul Schreiner"  wrote:

It sounds like you're not wanting to REMOVE the links,but basically generate a 
list of worksheets and the name of the external workbooks linked to those 
sheets.
That doesn't sound difficult.
But the error you're suggesting doesn't make sense because you're not "pasting" 
anything (with the macro I suggested).
It would take me at least an hour to TRY to create a file set that MIGHT 
duplicate your structure. Is it at all possible for you to send me the workbook 
directly (schreiner_p...@att.net)?
If not, can you send me the macro you're using that is causing the 
problems?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
-- --- 

On Wednesday, May 24, 2017 3:07 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several 
tabs/worksheets within workbook.
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and against each worksheet name mention the unique source with name 
say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e, f 
Worksheets.
This I want to do for all 100 worksheets.

Hope this helps.

Regards,
Kaushik
On May 25, 2017 00:23, "KAUSHIK SAVLA"  wrote:

Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several table 
within workbook.
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and 

Re: $$Excel-Macros$$ Links

2017-05-24 Thread Paul Schreiner
It sounds like you're not wanting to REMOVE the links,but basically generate a 
list of worksheets and the name of the external workbooks linked to those 
sheets.
That doesn't sound difficult.
But the error you're suggesting doesn't make sense because you're not "pasting" 
anything (with the macro I suggested).
It would take me at least an hour to TRY to create a file set that MIGHT 
duplicate your structure. Is it at all possible for you to send me the workbook 
directly (schreiner_p...@att.net)?
If not, can you send me the macro you're using that is causing the 
problems?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
- 

On Wednesday, May 24, 2017 3:07 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several 
tabs/worksheets within workbook.
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and against each worksheet name mention the unique source with name 
say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e, f 
Worksheets.
This I want to do for all 100 worksheets.

Hope this helps.

Regards,
Kaushik
On May 25, 2017 00:23, "KAUSHIK SAVLA"  wrote:

Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several table 
within workbook.
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and against each worksheet name mention the unique source with name 
say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e, f 
Worksheets.
This I want to do for all 100 worksheets.

Hope this helps.

Regards,
Kaushik

--
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/ lYmOGDBlWFU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
excel-macros+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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 https://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 ques

Re: $$Excel-Macros$$ Need help in Vba Macro

2017-05-24 Thread Paul Schreiner
What isn't working?What does your code look like?
I put random numbers in 100,000 cells in  Book1.xlsbThen, in Book2, I put 
100,000 cells with links to the corresponding cell in Book1.
I then created a macro module with:Option ExplicitSub RemoveLinks()
    Dim aLinks, inx
    aLinks = ActiveWorkbook.LinkSources(xlExcelLinks)
    
    If Not IsEmpty(aLinks) Then
    For inx = 1 To UBound(aLinks)
    ActiveWorkbook.BreakLink _
    Name:=aLinks(inx), _
    Type:=xlLinkTypeExcelLinks
    Next inx
    End If
End Sub

Ran RemoveLinks and it replaced all 100,000 cells with the contents immediately.
what does your code look like, and what do you mean that it "the code is not 
working"?
Is it not removing the links?is it giving you an error? 
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
- 

On Wednesday, May 24, 2017 1:42 AM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul,
The code is not working.
Can you please provide full code starting with Sub...till End sub
Regards,kaushik Savla
On Wed, May 24, 2017 at 12:42 AM, Paul Schreiner  wrote:

If you also want to get rid of the "internal" links and formulas, you can make 
use of the fact that, for a given cell, the VALUE of the cell is what is 
displayed, while the FORMULA of the cell is just that, the formula.
For cells with a simple value, like "3", then the formula and value are nearly 
the same.(the issue is that the value would be an integer, but the formula 
would be a string "3")
So, basically you could compare the value and formula for each used cell and 
overwrite if they are different.
I "convert" both the Value and Formula to strings to ensure they are compared 
properly, and use:
Sub BreakLinks()
    Dim Rng As Range
    For Each Rng In Sheets(1).UsedRange
    If (Rng.Formula & "X" <> Rng.Value & "X") Then Rng.Formula = Rng.Value
    Next Rng
End Sub
 
I created a sheet with 1000 rows and 100 columns. (so 100,000 cell contents)I 
then created a sheet that had 100,000 cells that added the contents of the 
adjacent sheet.
This macro converted the 100,000 cells to values in about 3 seconds.
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
-- --- 

On Tuesday, May 23, 2017 2:56 PM, KAUSHIK SAVLA  
wrote:
 

 This is think will definitely help. 
Thanks. 
On May 24, 2017 00:23, "Paul Schreiner"  wrote:

That's very CPU intensive because it copies all cells to the clipboardand 
pastes them from clipboard.which can be a HUGE number of cells for each sheet.
If you simply want to break the external links, you can use something like:
alinks = ActiveWorkbook.LinkSources( xlExcelLinks)
    
    If Not IsEmpty(alinks) Then
    For inx = 1 To UBound(alinks)
    ActiveWorkbook.BreakLink _
    Name:=alinks(inx), _
    Type:=xlLinkTypeExcelLinks
    Next inx
    End If
This will break links to EXTERNAL workbooks (and convert to values) but it 
doesn't do anything to the links to worksheets within the current workbook.
does that help? 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
-- --- 

On Tuesday, May 23, 2017 2:03 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Team,
I am trying to do below in an excel. You can assume there are 60 worksheets 
minimum in a workbook.
1. In opened excel file. Which has links from several files2. All cells of the 
workbook I am doing paste special values3. Then to come at the first cell in 
all worksheets (i.e. Cell A1)4. Then to come at first tab, first cell, Save the 
workbook here (so whenever excel opens the person will see first sheet, first 
cell)5. Close the workbook
I am having below vba code. It is taking forever to run (minimum 15-20 
minutes). Can anyone please help in boosting speed so could be run in fraction 
of seconds.

Sub Select_All_Sheets()Dim sht As WorksheetDim SelectMe() As StringDim s As 
IntegerFor Each sht In Worksheetss = s + 1ReDim Preserve SelectMe(1 To s) As 
StringSelectMe(s) = sht.NameSheets(SelectMe).SelectCells.Select    
Selection.Copy    Selection.PasteSpecial Paste:=xlPasteValues, 
Operation:=xlNone, SkipBlanks _        :=False, Transpose:=False    
Application.CutCopyMode = False    Application.Goto Range(Cells(ActiveWindow. 
SplitRow + 

Re: $$Excel-Macros$$ Need help in Vba Macro

2017-05-23 Thread Paul Schreiner
If you also want to get rid of the "internal" links and formulas, you can make 
use of the fact that, for a given cell, the VALUE of the cell is what is 
displayed, while the FORMULA of the cell is just that, the formula.
For cells with a simple value, like "3", then the formula and value are nearly 
the same.(the issue is that the value would be an integer, but the formula 
would be a string "3")
So, basically you could compare the value and formula for each used cell and 
overwrite if they are different.
I "convert" both the Value and Formula to strings to ensure they are compared 
properly, and use:
Sub BreakLinks()
    Dim Rng As Range
    For Each Rng In Sheets(1).UsedRange
    If (Rng.Formula & "X" <> Rng.Value & "X") Then Rng.Formula = Rng.Value
    Next Rng
End Sub
 
I created a sheet with 1000 rows and 100 columns. (so 100,000 cell contents)I 
then created a sheet that had 100,000 cells that added the contents of the 
adjacent sheet.
This macro converted the 100,000 cells to values in about 3 seconds.
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
- 

On Tuesday, May 23, 2017 2:56 PM, KAUSHIK SAVLA  
wrote:
 

 This is think will definitely help. 
Thanks. 
On May 24, 2017 00:23, "Paul Schreiner"  wrote:

That's very CPU intensive because it copies all cells to the clipboardand 
pastes them from clipboard.which can be a HUGE number of cells for each sheet.
If you simply want to break the external links, you can use something like:
alinks = ActiveWorkbook.LinkSources( xlExcelLinks)
    
    If Not IsEmpty(alinks) Then
    For inx = 1 To UBound(alinks)
    ActiveWorkbook.BreakLink _
    Name:=alinks(inx), _
    Type:=xlLinkTypeExcelLinks
    Next inx
    End If
This will break links to EXTERNAL workbooks (and convert to values) but it 
doesn't do anything to the links to worksheets within the current workbook.
does that help? 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
-- --- 

On Tuesday, May 23, 2017 2:03 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Team,
I am trying to do below in an excel. You can assume there are 60 worksheets 
minimum in a workbook.
1. In opened excel file. Which has links from several files2. All cells of the 
workbook I am doing paste special values3. Then to come at the first cell in 
all worksheets (i.e. Cell A1)4. Then to come at first tab, first cell, Save the 
workbook here (so whenever excel opens the person will see first sheet, first 
cell)5. Close the workbook
I am having below vba code. It is taking forever to run (minimum 15-20 
minutes). Can anyone please help in boosting speed so could be run in fraction 
of seconds.

Sub Select_All_Sheets()Dim sht As WorksheetDim SelectMe() As StringDim s As 
IntegerFor Each sht In Worksheetss = s + 1ReDim Preserve SelectMe(1 To s) As 
StringSelectMe(s) = sht.NameSheets(SelectMe).SelectCells.Select    
Selection.Copy    Selection.PasteSpecial Paste:=xlPasteValues, 
Operation:=xlNone, SkipBlanks _        :=False, Transpose:=False    
Application.CutCopyMode = False    Application.Goto Range(Cells(ActiveWindow. 
SplitRow + 1, ActiveWindow.SplitColumn + 1).Address)    
ActiveWorkbook.SaveNextEnd Sub
Regards,Kaushik Savla-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://g

Re: $$Excel-Macros$$ Need help in Vba Macro

2017-05-23 Thread Paul Schreiner
That's very CPU intensive because it copies all cells to the clipboardand 
pastes them from clipboard.which can be a HUGE number of cells for each sheet.
If you simply want to break the external links, you can use something like:
alinks = ActiveWorkbook.LinkSources(xlExcelLinks)
    
    If Not IsEmpty(alinks) Then
    For inx = 1 To UBound(alinks)
    ActiveWorkbook.BreakLink _
    Name:=alinks(inx), _
    Type:=xlLinkTypeExcelLinks
    Next inx
    End If
This will break links to EXTERNAL workbooks (and convert to values) but it 
doesn't do anything to the links to worksheets within the current workbook.
does that help? 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
- 

On Tuesday, May 23, 2017 2:03 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Team,
I am trying to do below in an excel. You can assume there are 60 worksheets 
minimum in a workbook.
1. In opened excel file. Which has links from several files2. All cells of the 
workbook I am doing paste special values3. Then to come at the first cell in 
all worksheets (i.e. Cell A1)4. Then to come at first tab, first cell, Save the 
workbook here (so whenever excel opens the person will see first sheet, first 
cell)5. Close the workbook
I am having below vba code. It is taking forever to run (minimum 15-20 
minutes). Can anyone please help in boosting speed so could be run in fraction 
of seconds.

Sub Select_All_Sheets()Dim sht As WorksheetDim SelectMe() As StringDim s As 
IntegerFor Each sht In Worksheetss = s + 1ReDim Preserve SelectMe(1 To s) As 
StringSelectMe(s) = sht.NameSheets(SelectMe).SelectCells.Select    
Selection.Copy    Selection.PasteSpecial Paste:=xlPasteValues, 
Operation:=xlNone, SkipBlanks _        :=False, Transpose:=False    
Application.CutCopyMode = False    Application.Goto 
Range(Cells(ActiveWindow.SplitRow + 1, ActiveWindow.SplitColumn + 1).Address)   
 ActiveWorkbook.SaveNextEnd Sub
Regards,Kaushik Savla-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Links

2017-05-23 Thread Paul Schreiner
So, you're wanting to find out what other documents are being linked?
something like this will count the number of referenced links:
    cnt = 0
    alinks = ActiveWorkbook.LinkSources(xlExcelLinks)
'    MsgBox alinks.Count
    If Not IsEmpty(alinks) Thenmsgbox "Links: " & UBound(alinks)
    End If
You can loop through the array to list unique values.
 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
- 

On Tuesday, May 23, 2017 2:07 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Team,
I have several huge data files.
Each file has links to several worksheets and several workbooks.
Can anyone help me with a vba code which will go in each worksheet of workbook 
and will fetch me result mentioning each worksheet has source from which 
worksheets/workbooks.
Doing it manually is impossible.
Regards,Kaushik Savla-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Count uniques with only 1 criteria column

2017-05-23 Thread Paul Schreiner
There are several approaches.Using Excel functions, I would concatenate the 
values;=A2&"_"&B2which would result in:SNUser1001   25  1001_251002   25  
1002_251003   26  1003_261001   25  1001_251004   26  1004_26
Then you can use your functions to count unique values of column C.
You can do something similar using VBA...Which approach do you want to take?
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
- 

On Monday, May 22, 2017 6:37 PM, MLT  wrote:
 

 Hello all,
I have a bit of a variation from the count unique values with 2 criteria... in 
this case I have two columns: the first is a list of serial numbers that does 
contain duplicates and the second column is the user number that has used that 
serial number (also contains duplicates).
For example...
Col A  Col BSN  User1001   251002   251003   261001   251004   26
this example would count 2 unique values for user 25, and 2 unique values for 
26.
The examples I found had criteria for both columns, here the criteria would 
only be applied against col B, where col A could be any value to get counted, 
provided it was unique when combined with its corresponding user in col B.
Thanks for any help!
Matt-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: Fwd: $$Excel-Macros$$ copy data from one sheet to other based on condition

2017-05-18 Thread Paul Schreiner
Your error seems to indicate that you're trying to create a sheet and change 
the name to one that already exists.
without seeing a sample of your file and macros, it will be difficult to 
determine what is going on. 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
- 

On Thursday, May 18, 2017 1:37 AM, Sanjib Chatterjee 
 wrote:
 

 Sir / Madam,
Please help I am having a of copying data from one sheet to another sheets 
based on some criteria 
regards
Sanjib Chatterjee
-- Forwarded message --
From: Sanjib Chatterjee 
Date: Wed, May 17, 2017 at 9:56 AM
Subject: Re: $$Excel-Macros$$ copy data from one sheet to other based on 
condition
To: excel-macros 


Dear Preeti Tomar
Many Many thank you for your prompt help.  
This is what exactly I am looking for.  But I am getting an error while trying 
the execute the command for the next time.
for your reference I am attaching the error snap short
Please help
Once again many many thank you in advance
Sanjib Chatterjee
 

On Tue, May 16, 2017 at 10:48 PM, Preeti Tomar  wrote:

https://jeetexltips.blogspot.i n/2017/05/Filterinvba.html


On Tue, May 16, 2017 at 2:00 PM, Sanjib Chatterjee 
 wrote:


Dear Sir / madam,
Please see the attachment.  
I have a problem I want to copy data base on the Person name which i 
highlighted with yellow colour.suppose if the person name "JKM" a sheet will 
created with the name "JKM" and the entire rows data relating to Jkm WILL copy 
to the new sheets of JKM.  if the person name is HM the the same rule will be 
follow.

Please help 
Thanking you
SANJIB CHATTERJEE


-- 
--- 
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/discu ssexcel
 
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+unsubscribe@googl egroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/grou p/excel-macros.
For more options, visit https://groups.google.com/d/op tout.


-- 
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/discu ssexcel
 
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+unsubscribe@googl egroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/grou p/excel-macros.
For more options, visit https://groups.google.com/d/op tout.




-- 
-


-- 
--- 
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

$$Excel-Macros$$ Excel VBA Sharepoint checkout-checkin

2017-05-02 Thread Paul Schreiner
I've Googled extensively and tested multiple options for more than 30 hours 
over the last couple of weeks.
The results of my searches all LOOK reasonable, but all have failed to 
function properly.
I have some SUSPICIONS as to why it's not working, but that doesn't lead me 
to solutions.

Here's my problem:

I'm an "owner" of a corporate SharePoint site.
(which means I have limited Admin privileges).

I have (4) user workbooks (not in SharePoint) that have a total of 242 
worksheets that monitor Capital Project expenditures.
I've written macros to copy the worksheets to separate workbooks, save the 
files to the SharePoint folder,
add some Named Ranges and use ContentTypeProperties to update fields in the 
SharePoint metadata (and views).

My Summary reporting macros have been rewritten to read from the SharePoint 
metadata fields instead of the worksheets themselves.

Once the final migration is complete, the worksheets will be maintained 
within SharePoint and  the current (4) workbooks will be locked away and 
used no more.

I've executed the migration macros multiple times over the last couple of 
months in order to prepare for final migration to the SharePoint site.

The ONLY thing I'm stuck on is trying to Check-In the documents from VBA.

Now, I CAN check in the document from SharePoint, but it extends the 
migration time to hours instead of minutes.

Whenever I attempt the .CheckIN method (or .CanCheckIn), the method fails 
or indicates that the files cannot be checked in.

Using VBA, I can delete the file from the SharePoint folder and copy (or 
.SaveAs) the current file to the folder.

The result is that the file is "Checked Out" to me.

(so it SEEMS to recognize my authorization to modify the contents of the 
folder)

Sure, I can stay after the end of my shift for 3 hours on ONE DAY to 
migrate the data (or come in 3 hours early).
but I'd prefer to be able to run a macro that does it all...

does anyone have any experience with the VBA .CheckIN method for SharePoint?

Thank you,

Paul

-- 
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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ how to process parallel ranges with 'for each'

2017-05-01 Thread Paul Schreiner
how are you defining the corresponding cell?Is it the same cell in a different 
sheet?or is it the same "offset"That is:Range 1 is 3 rows x 3 columns beginning 
in cell A1 andRange 2 is 3 rows x 3 columns beginning in cell E1 
there's lots of ways to do it.In some cases, you can hard-code the row/column 
offsets in the loop.
Or, you could calculate the offset from the first cell of the rangeand use the 
offset in the second range.
if you can give me some real-life examples, I could try to throw something 
together.
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
- 

On Thursday, April 27, 2017 10:49 PM, Raymond Jerome 
 wrote:
 

 

I want to take 2 ranges, 1 dim each, can be 2 rows or 2 columns, but I need to 
take a cell from one range and do something with it's 'parallel' cell in the 
other range.
for example, something like a root mean square deviation. One column is data 
values, other column is expected values and the loop sums 
(data(i)-expect(i))^2...
here is how I understand doing something like this on one column or row, very 
simple, no error checking...

Function rms(ByVal Target As Range) As Double
'root mean squared. quadratic mean
Dim Cell As Range
Dim summand As Double
Dim tot As Integer
tot = 0
summand = 0#
For Each Cell In Target.Cells
    If IsNumeric(Cell) Then
    tot = tot + 1
    summand = summand + Cell ^ 2
    End If
Next Cell
rms = Math.Sqr(summand / tot)
End Function

what i do not understand or can't figure is how to do tghis kind of thing on 2 
ranges where a cell from one and a similar cell from the other are co 
processed. Perhaps using .address or .row or .col mixed and matched or split 
out... But is there some simpler way?
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Hide & lock a formula in the cell

2017-05-01 Thread Paul Schreiner
The steps would be:1) Select all cells   Right-Click and select "Format Cells"  
 go to "Protection" tab and make sure "Locked" is selected.   Select "OK"2) 
Select all cells you want to be able to select/change   Right-click and select 
"Format Cells"   on "Protection" tab, DE-SELECT the "Locked" checkbox.   select 
"OK"3) Select "Protect Sheet" on Review tab.   Remove the checkbox that allows 
locked cells to be selected   But LEAVE the check for selecting UNLOCKED cells. 
  You can add a password or not (for testing, you can leave the password off)   
Note:Locked/Unlocked and Hidden/Unhidden only is enabled when the sheet is 
protected.otherwise, all cells are unlocked and shown.
hope this helps.-
“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
- 

On Monday, May 1, 2017 2:20 AM, Puneet Jain  wrote:
 

 Dear All
I request you to please help me in Excel sheet that how to hide & lock a 
formula in the cell, in the same way as done in Income tax excel form

-- 
With Warm Regards

Puneet Jain

Mobile-9899068873
Phone(O)-011-23456613
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ popup comments using vlookup or lookup UDF IN VB

2017-04-13 Thread Paul Schreiner
Here's the approach I took:I defined a "public" Dictionary object called 
Dict_Category.I created a function to load the Dict_Category with the category 
listing from the "DATA" sheet.
Being a "public" variable, the values are retained while the workbook is open.
I created two worksheet events:Worksheet_SelectionChangeWorksheet_Change
I created two events so that the Comments update when the cell is selected, and 
also if you were to copy/paste several cells into column "A".
Personally, I think the Change event is the only one that is required.
The Update_Comments function does things like:- Clears the comments from cells 
that are blank- Shows a message if a value is entered that is not in the 
Dictionary
hope this gives you something to work from.

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
- 

On Thursday, April 13, 2017 5:26 AM, sunil lobo  
wrote:
 

 hi [U][SIZE=5]just want to have comments populate when the cell is selected 
based on the lookup/vlookup function through VB[/SIZE][/U]two sheet 1) 
master_sheet  2 )data sheet masters sheet being dynamic data sheet is 
staticmaster sheet continuosly changing now when  a particular cell is 
activated by using mouse or keyboard comments should pop-up getting  the value 
from the next data sheet 
eg: master sheet , cell a2= 1                          cell a3=2                
          cell a4=4so on and so forth 
in data sheet , cell a2= 5 , cell b2= present                          a3=2, 
cell b3= absent                          a4= 3,cell b4= leave                   
          a5= 1, cell b5= leftnow when i select a3 cell in master_sheet i need 
to populate a comment as [B]absent[/B], when the cell a3 changes to value 
[B]1[/B] i should get a comment display of value [B]left[/B]also when the cell 
value changes it chsould clear the previous comment basically it should popup 
comments based on the value from the data sheet !:)
attaching herewith the sample data for ur reference-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Sample file.xlsb
Description: application/vnd.ms-excel.sheet.binary.macroenabled.12


Re: $$Excel-Macros$$ What is dictionary object in vba, how do we use it?

2017-03-17 Thread Paul Schreiner
I'm a HUGE fan of the Dictionary Object.
It has multiple uses.In it's basic form, it defines a unique "index" for a 
two-dimensional array.
Let's say you have a large worksheet and you want to get a list of unique 
values from column "A" a count of each.
You can cycle through the rows and check to see if the value is in the 
dictionary:
if (not Dict_name.exists(cells(nRow,"A").value)) then' If it's not in the 
dictionary, Add it:    Dict_name.add cells(nRow,"A").value, 1' If it IS, 
then increment the value in the dictionary:else   
Dict_name.item(cells(nRow,"A").value) = dict_name.item(cells(nRow,"A").value) + 
1

once you've cycled through the values, you can "look up" the total by using the 
.item method (above)
Or you can convert the dictionary to an array by using:
dArray = dict_name.keys
lots of possibilities! 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
- 

On Friday, March 17, 2017 7:30 AM, Tulika Chauhan 
 wrote:
 

 Hi, 
i am new to vba, can anybody help me on dictionary?

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ How to pick numbers which are missing in serial numbers

2017-03-13 Thread Paul Schreiner
What I would do is first load your "Roll No." values into a Dictionary 
object.Then, loop through your "S.No." values and look to see if they are in 
the Dictionary.Report the missing values.Like:
Sub Find_Missing()
    Dim Dict_SN, SN
    Dim nRows, nRow, drow
    Set Dict_SN = CreateObject("Scripting.Dictionary")
    Dict_SN.RemoveAll
    
    nRows = Range("A1").SpecialCells(xlLastCell).Row
    ' Load Dictionary
    For nRow = 2 To nRows
    SN = Trim(ActiveSheet.Cells(nRow, "B").Value)
    If (SN & "X" <> "X") Then
    If (Not Dict_SN.exists(SN)) Then Dict_SN.Add SN, nRow
    End If
    Next nRow
    
    ActiveSheet.Range("C2:C65000").ClearContents
    drow = 1
    For nRow = 2 To nRows
    SN = Trim(ActiveSheet.Cells(nRow, "A").Value)
    If (SN & "X" <> "X") Then
    If (Not Dict_SN.exists(SN)) Then
    drow = drow + 1
    ActiveSheet.Cells(drow, "C").Value = SN
    End If
    End If
    Next nRow
End SubPaul-
“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
- 

On Sunday, March 12, 2017 1:23 AM, Sunil Kumar Yadav 
 wrote:
 

 Dear Paul,
I have need your help for this query. Please guide me.
-- 
Sky
"Good, Better, Best!Always listen to your heart, because there lives your 
parents.-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ How to make dynamic formula for value change on fix date every month

2017-03-06 Thread Paul Schreiner
Please take a closer look at my long-winded explanation.
I was merely trying to explain how your "static" formula using Today() was 
inefficient and why.
I then went on to suggest that you use (in cell B5) the formula:
=IF(YEAR(A5-15) <> YEAR(TODAY()),0, MONTH(A5-15)*1.5)
I also said that for your second question (rounding values to .5 increments)can 
be done with:
=INT(A23*2)/2
My explanations get kind-of long, because I prefer to TEACH the reasons why 
instead of simply handing over answers. 
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
- 

On Saturday, March 4, 2017 12:10 AM, Sunil Kumar Yadav 
 wrote:
 

 Dear Paul,
Thank you so much for your support but I don't have need formula calculation 
start from today. It should be start from my provided date...pls recheck that 
time my file i am sure you will be got my query.
On Mar 4, 2017 1:58 AM, "Paul Schreiner"  wrote:

First of all, your IF() statement:A nested if statement will evaluate each 
section until it finds a true() option.So, in the first 
case:IF(TODAY()<=42750evaluates false, that means today is > 42750So the second 
part: IF(AND(TODAY()>=42751  HAS to be true, so there's no reason to test 
it!Your IF statement could be simplified to:IF(TODAY()<=42750,0,
IF(TODAY()<=42781,1.5,
IF(TODAY()<=42809,3,
IF(TODAY()<=42840,4.5,
IF(TODAY()<=42870,6,
IF(TODAY()<=42901,7.5,
IF(TODAY()<=42931,9,
IF(TODAY()<=42962,10.5,
IF(TODAY()<=42993,12,
IF(TODAY()<=43023,13.5,
IF(TODAY()<=43054,15,
IF(TODAY()<=43084,16.5,
IF(TODAY()>=43085,18,0 )
But, you can simplify it even more.You're using the 15th of the month as the 
"break point".So, if you were to subtract 15 days, you'd be in the "same" month 
if the day is > 15, and the PREVIOUS month if it is before the 15th.Basically, 
by subtracting 15, you're setting the "break point" as the first of the 
month.So, if you determine the month number: (MONTH(A5-15)) you could say you 
want 1.5 for each month, or:MONTH(A6-15) * 15Now, the issue is with the first 
half of January.subtracting 15 makes it December of the PREVIOUS year, and 
therefore should be 0 instead of 18.
so, you need to check to see if the offset year is the same as the current 
year:=IF(YEAR(A5-15) <> YEAR(TODAY()),0, MONTH(A5-15)* 1.5)
This seems match the same as your sample values for rows 5-9,but I'm not sure 
what you were doing with rows 12-16Why does 16-Mar in row 8 result in 4.5, but 
16-Mar in row 13 is supposed to be 1.5 ???I'm not sure what the rules you're 
using here.
as for your second query:
You're basically wanting to round off your number to the nearest 1/2.You can 
accomplish this by first doubling the number and removing the decimal 
portion(extract just the integer portion)then divide it by 2:=INT(A23*2)/2
this works for your samples.
hope this helps.

 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
-- --- 

On Friday, March 3, 2017 12:08 PM, Sunil Kumar Yadav 
 wrote:
 

 Dear All,
I have two query for automatically update value on one fixed date, have created 
formula but need dynamic formula.

Formula:IF(TODAY()<=42750,0,IF(AND( TODAY()>=42751,TODAY()<=42781) 
,1.5,IF(AND(TODAY()>=42782, TODAY()<=42809),3,IF(AND( 
TODAY()>=42810,TODAY()<=42840) ,4.5,IF(AND(TODAY()>=42841, 
TODAY()<=42870),6,IF(AND( TODAY()>=42871,TODAY()<=42901) 
,7.5,IF(AND(TODAY()>=42902, TODAY()<=42931),9,IF(AND( 
TODAY()>=42932,TODAY()<=42962) ,10.5,IF(AND(TODAY()>=42963, 
TODAY()<=42993),12,IF(AND( TODAY()>=42994,TODAY()<=43023) 
,13.5,IF(AND(TODAY()>=43024, TODAY()<=43054),15,IF(AND( 
TODAY()>=43055,TODAY()<=43084) ,16.5,IF(AND(TODAY()>=43085, 
TODAY()>=43085),18,0)) )))

Please check excel sheet...Thanks in advance for help!
-- 
Sky
"Good, Better, Best​!Always listen to your heart​​​, because there lives your 
parents.​
-- 
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 bypas

Re: $$Excel-Macros$$ VBA Run time error 13 type mismatch in Excel 2010 with Datavalidation & VBA

2017-03-06 Thread Paul Schreiner
Maatangi,
your file has a link to a file called Database-formats11.xlsb that I don't 
have, so I'm not sure if I can do much testing.
However, as far as the locked/protected cells go:Record a macro in which you 
Protect the sheet (with a password) and making appropriate selections.then 
unprotect it.
It should look something like:
Sub Macro1()
'
    ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
    , AllowFormattingCells:=True, AllowFormattingColumns:=True, _
    AllowFormattingRows:=True, AllowInsertingRows:=True, 
AllowSorting:=True, _
    AllowFiltering:=True, AllowUsingPivotTables:=True
    ActiveSheet.EnableSelection = xlUnlockedCells
    
    ActiveSheet.Unprotect
End Sub
I formatted it so that it's easier to read and separate them into two 
functions:Function Sheet_Lock()
    ActiveSheet.Protect _
    DrawingObjects:=True, _
    Contents:=True, _
    Scenarios:=True, _
    AllowFormattingCells:=True, _
    AllowFormattingColumns:=True, _
    AllowFormattingRows:=True, _
    AllowInsertingRows:=True, _
    AllowSorting:=True, _
    AllowFiltering:=True, _
    AllowUsingPivotTables:=True
    ActiveSheet.EnableSelection = xlUnlockedCellsSheet_Lock = TrueEnd 
Function
Function Sheet_Unlock()
    ActiveSheet.UnprotectSheet_Unlock = True
End Function
The problem here is that the macro recorder doesn't record the "password" 
portion!You can add simply by adding 
c
like:'---Function Sheet_Lock()
    ActiveSheet.Protect _
    DrawingObjects:=True, _
    Contents:=True, _
    Scenarios:=True, _
    AllowFormattingCells:=True, _
    AllowFormattingColumns:=True, _
    AllowFormattingRows:=True, _
    AllowInsertingRows:=True, _
    AllowSorting:=True, _
    AllowFiltering:=True, _
    AllowUsingPivotTables:=True, _
Password:="Maatangi"
    ActiveSheet.EnableSelection = xlUnlockedCellsSheet_Lock = TrueEnd 
Function
Function Sheet_Unlock()
    ActiveSheet.Unprotect Password:="Maatangi"Sheet_Unlock = True
End Function'---
Now, in your macro: Declare a "status" variable:    Dim Stat
once you've tested it to see if you need to run, Unlock the sheet:
    If nRng Is Nothing Then Exit Sub
    If Target.Value = "OrderStatus" Then
    Stat = Sheet_Unlock
At the end of the macro, Relock it:
    On Error GoTo 0
    Stat = Sheet_Unlock

I recommend:Creating these as function instead of Sub.Because, as a Sub, if the 
user selects the Menu item to run a macro, it would show up in the list and 
they can unlock the sheet.
why did you comment out your EnableEvents lines?You probably only need one at 
the beginning and one at the end instead of inside each if/else statement.

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
- 

On Sunday, March 5, 2017 11:31 PM, Maatangi M. Karthik  
wrote:
 

 Hello Paul,

Pls find the attached Sample.xlsm file for your reference. 

I did try the lock cells for certain cells but that when the formula had to be 
computed, locked cells had to be overwritten and that was not permitted.

If there is a possibility of talking to explain things that I want to 
accomplish with the excel, do let me know.

Otherwise, I will have to explain here and get it done.

Thanks,
Maatangi


On Friday, 3 March 2017 18:27:55 UTC+5:30, Paul Schreiner wrote:
First of all (last of all?):You can lock some cells and leave others available 
for editing:- select all cells- right click on the selection - Select "Format 
Cells"- select "Protection" tab- Make sure "Locked" is checked.- click "OK"
When the sheet is protected, all cells with this "locked" attribute will be.. 
um... "locked"...Now select the cells you want to allow users to enter data 
into.then:- Select "Format Cells"- select "Protection" tab- Make sure "Locked" 
is NOT checked.- click "OK"
Now, depending on what options you choose when you protect the sheet, the cells 
with the formulas cannot even be selected!while the user entry cells are left 
unchanged.
If you want to be able to copy and paste all the data INCLUDING the locked 
cells to another sheet,make the appropriate selection when protecting the sheet.
I think it "SOUNDS" like you want to accomplish your other items using Excel 
functions rather than VBA.(however

Re: $$Excel-Macros$$ How to make dynamic formula for value change on fix date every month

2017-03-03 Thread Paul Schreiner
First of all, your IF() statement:A nested if statement will evaluate each 
section until it finds a true() option.So, in the first 
case:IF(TODAY()<=42750evaluates false, that means today is > 42750So the second 
part: IF(AND(TODAY()>=42751  HAS to be true, so there's no reason to test 
it!Your IF statement could be simplified to:IF(TODAY()<=42750,0,
IF(TODAY()<=42781,1.5,
IF(TODAY()<=42809,3,
IF(TODAY()<=42840,4.5,
IF(TODAY()<=42870,6,
IF(TODAY()<=42901,7.5,
IF(TODAY()<=42931,9,
IF(TODAY()<=42962,10.5,
IF(TODAY()<=42993,12,
IF(TODAY()<=43023,13.5,
IF(TODAY()<=43054,15,
IF(TODAY()<=43084,16.5,
IF(TODAY()>=43085,18,0)
But, you can simplify it even more.You're using the 15th of the month as the 
"break point".So, if you were to subtract 15 days, you'd be in the "same" month 
if the day is > 15, and the PREVIOUS month if it is before the 15th.Basically, 
by subtracting 15, you're setting the "break point" as the first of the 
month.So, if you determine the month number: (MONTH(A5-15)) you could say you 
want 1.5 for each month, or:MONTH(A6-15) * 15Now, the issue is with the first 
half of January.subtracting 15 makes it December of the PREVIOUS year, and 
therefore should be 0 instead of 18.
so, you need to check to see if the offset year is the same as the current 
year:=IF(YEAR(A5-15) <> YEAR(TODAY()),0, MONTH(A5-15)*1.5)
This seems match the same as your sample values for rows 5-9,but I'm not sure 
what you were doing with rows 12-16Why does 16-Mar in row 8 result in 4.5, but 
16-Mar in row 13 is supposed to be 1.5 ???I'm not sure what the rules you're 
using here.
as for your second query:
You're basically wanting to round off your number to the nearest 1/2.You can 
accomplish this by first doubling the number and removing the decimal 
portion(extract just the integer portion)then divide it by 2:=INT(A23*2)/2
this works for your samples.
hope this helps.

 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
- 

On Friday, March 3, 2017 12:08 PM, Sunil Kumar Yadav 
 wrote:
 

 Dear All,
I have two query for automatically update value on one fixed date, have created 
formula but need dynamic formula.

Formula:IF(TODAY()<=42750,0,IF(AND(TODAY()>=42751,TODAY()<=42781),1.5,IF(AND(TODAY()>=42782,TODAY()<=42809),3,IF(AND(TODAY()>=42810,TODAY()<=42840),4.5,IF(AND(TODAY()>=42841,TODAY()<=42870),6,IF(AND(TODAY()>=42871,TODAY()<=42901),7.5,IF(AND(TODAY()>=42902,TODAY()<=42931),9,IF(AND(TODAY()>=42932,TODAY()<=42962),10.5,IF(AND(TODAY()>=42963,TODAY()<=42993),12,IF(AND(TODAY()>=42994,TODAY()<=43023),13.5,IF(AND(TODAY()>=43024,TODAY()<=43054),15,IF(AND(TODAY()>=43055,TODAY()<=43084),16.5,IF(AND(TODAY()>=43085,TODAY()>=43085),18,0)

Please check excel sheet...Thanks in advance for help!
-- 
Sky
"Good, Better, Best​!Always listen to your heart​​​, because there lives your 
parents.​
-- 
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 https://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

Re: $$Excel-Macros$$ VBA Run time error 13 type mismatch in Excel 2010 with Datavalidation & VBA

2017-03-03 Thread Paul Schreiner
First of all (last of all?):You can lock some cells and leave others available 
for editing:- select all cells- right click on the selection - Select "Format 
Cells"- select "Protection" tab- Make sure "Locked" is checked.- click "OK"
When the sheet is protected, all cells with this "locked" attribute will be.. 
um... "locked"...Now select the cells you want to allow users to enter data 
into.then:- Select "Format Cells"- select "Protection" tab- Make sure "Locked" 
is NOT checked.- click "OK"
Now, depending on what options you choose when you protect the sheet, the cells 
with the formulas cannot even be selected!while the user entry cells are left 
unchanged.
If you want to be able to copy and paste all the data INCLUDING the locked 
cells to another sheet,make the appropriate selection when protecting the sheet.
I think it "SOUNDS" like you want to accomplish your other items using Excel 
functions rather than VBA.(however, VBA is ALWAYS an option)
But it would be a LOT easier for both of us if you could share a sample 
file(even with "dummy" data)
I'd be glad to help.
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
- 

On Friday, March 3, 2017 12:16 AM, Maatangi M. Karthik  
wrote:
 

 
Hi there are a few more things I want from the excel.

1. There are some formulae in my excel sheet, I would like to convert them to 
the backend so that the users cannot change them at any cost
2. There are some fields that affect these formulae in succession, that is, two 
or three cell values together will make up the formula for another cell. I want 
to be able to capture the input event and the formula creation based on this 
input.
For example, there is a field where a due date gets calculated. And this column 
is dependent on 2 other columns' values. so I want to capture those 2 columns' 
input events and invoke the formula once they are filled.
3. In the excel there are 3 fields, Tax,sales price with tax and sales price 
without tax. At present I have given the option of entering / choosing the Tax 
% and entering the without tax price. However, there may be cases where the 
user will know only the with tax price and the tax %. this creates double work 
for them as they have to compute the without tax price and then paste it in 
this excel. I want to avoid this double work and give the option for the users 
to enter price in either of the columns and then be able to compute based on 
which one is input.
4. Last query for now,
I tried Locking / hiding the formulae for certain fields; however, they don't 
take effect unless the excel sheet is protected and if I protect the sheet, 
then users are unable to edit / input their values where necessary. Is there a 
VBA workaround for this? Most of the date fields have to be locked as well and 
should not be allowed to be changed by users.

On Friday, 3 March 2017 01:02:22 UTC+5:30, Paul Schreiner wrote:
I deleted a row and received the "Type Mismatch" error.If you select "Debug", 
you'll see that the offending line of code is:   If Target.Value = 
"OrderStatus" ThenPutting a  "watch" on the Target variable, you'll see that it 
isn't a single cell, but an array of cells!
When you change multiple cells (even by deleting, or inserting, or copying), 
then the Change event is passed an range ARRAY rather than a single range.
In your case, you have a choice.You can add an if() statement like:if 
(Target.count > 1) then exit sub
Or, you can process each cell in the target array like:
dim Targ as rangefor each Targ in Target... (replace each occurrence of 
"Target" with "Targ") ...Next Targ

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
-- --- 

On Thursday, March 2, 2017 12:33 PM, Maatangi M. Karthik 
 wrote:
 

 I am absolutely new to excel VBA.

I have a requirement to create an excel to maintain status of orders (there are 
about 6 / 7 order statuses (2 of which are OrderStatus(no status), Enquiry and 
taken as samples here ) and based on each status, a specific set of actions 
have to be performed. I have created the excel in which there are multiple 
columns & rows, some of the columns have data validations either from a 
reference sheet or entered as list in the Data validation part and some have 
formula references.

What little coding I could understand, I have done that based

Re: $$Excel-Macros$$ VBA Run time error 13 type mismatch in Excel 2010 with Datavalidation & VBA

2017-03-02 Thread Paul Schreiner
I deleted a row and received the "Type Mismatch" error.If you select "Debug", 
you'll see that the offending line of code is:   If Target.Value = 
"OrderStatus" ThenPutting a  "watch" on the Target variable, you'll see that it 
isn't a single cell, but an array of cells!
When you change multiple cells (even by deleting, or inserting, or copying), 
then the Change event is passed an range ARRAY rather than a single range.
In your case, you have a choice.You can add an if() statement like:if 
(Target.count > 1) then exit sub
Or, you can process each cell in the target array like:
dim Targ as rangefor each Targ in Target... (replace each occurrence of 
"Target" with "Targ") ...Next Targ

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
- 

On Thursday, March 2, 2017 12:33 PM, Maatangi M. Karthik 
 wrote:
 

 I am absolutely new to excel VBA.

I have a requirement to create an excel to maintain status of orders (there are 
about 6 / 7 order statuses (2 of which are OrderStatus(no status), Enquiry and 
taken as samples here ) and based on each status, a specific set of actions 
have to be performed. I have created the excel in which there are multiple 
columns & rows, some of the columns have data validations either from a 
reference sheet or entered as list in the Data validation part and some have 
formula references.

What little coding I could understand, I have done that based on my teeny weeny 
bit of knowledge + the ideas that I got from checking on various websites. As a 
result, I am not sure if I have a robust code, although, I have some piece of 
coding to perform certain actions based on values change in certain columns.

Following are the issues that I want help with:

 When inserting / deleting row / rows, get error "Type Mismatch error 13"
 The same error appears while certain columns are extended down to the cells.
 Same error while cut copy pasting a row
 Although the run time error occurs, the action is partially completed

Earliest response would be much appreciated.

My sample excel is attached -- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Re: same name

2017-02-28 Thread Paul Schreiner
Your question is extremely vague.
The simple answer is: yes.
Simply use find/replace (ctrl-h)enter JAY BHAVANI COAL FILEDS PVT. LTD. in the 
"find what:" fieldenter Jay Bhawani Coal Fields Pvt Ltd  in the "Replace with:" 
fieldand click the "Replace All" button.
Is THAT what you're looking to do?(because that's what you asked)
BTW: you changed BhaVani to BhaWani
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
- 

On Tuesday, February 28, 2017 5:36 AM, "jignesh.audichy...@gmail.com" 
 wrote:
 

 
         can i make it only one type of name like JAY BHAVANI COAL FILEDS PVT. 
LTD. to Jay Bhawani Coal Fields Pvt Ltd for all the name 




On Friday, February 24, 2017 at 2:13:18 PM UTC+5:30, jignesh audichya wrote:
respected all ,
is there any way to make the two or more name same if all that name have the 
small diff like ,.'

-- 
Warm Regards,
Jignesh Audichya.
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ to add - sign in vehical number

2017-02-21 Thread Paul Schreiner
Its simple enough to determine the last 4 characters using the right() 
function.But because the length varies (from 7 to 11), you need to be a bit 
more "creative" with the left() function.
try inserting a column with:=LEFT(F3,LEN(F3)-4)&"-"&RIGHT(F3,4)
copy to all rows, then copy/paste Values to convert it to a value.
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
- 

On Tuesday, February 21, 2017 6:53 AM, "jignesh.audichy...@gmail.com" 
 wrote:
 

 respected all,
i have bulk data of indian vehicle number, for example i'll attached the xls 
file, is there any easy way to insert - Sign before last four digit.if anyone 
tell me the easy way it'll help me to finish this task fastest.-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Counting up the combinations

2017-02-20 Thread Paul Schreiner
What's the format of your survey results?
My script "assumes" that the current sheet has three columns:
Survey#, Question, Answer in columns A, B, and C.
It places the summary in columns F:Kwith the header of:  Question#, Ans_1, 
Ans_2, Ans_3, Ans_4, Ans_5
Sub CountArray()
    Dim Results(1 To 4, 1 To 5)
    Dim nRow, nRows
    Dim qNo As Integer, qVal As Integer
    
    nRows = Application.WorksheetFunction.CountA(Range("A:A"))
    
    For nRow = 2 To nRows
    qNo = Cells(nRow, "B").Value
    qVal = Cells(nRow, "C").Value
    Results(qNo, qVal) = Results(qNo, qVal) + 1
    Next nRow
    
    For qNo = 1 To 4
    For qVal = 1 To 5
    Cells(qNo + 1, qVal + 6).Value = Results(qNo, qVal)
    Next qVal
    Next qNo
    MsgBox "Fin"
End Sub
 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
- 

On Monday, February 20, 2017 8:43 AM, Greg Della-Croce 
 wrote:
 

 Paul,  That is an excellent idea!  All my survey results are on one page of on 
workbook.  So this should be fairly simple to write.   Thanks!!

Greg Della-CroceSkype: gdellacroce55Cell: 
407-408-2572greg_della-cr...@sil.org"If you assume you know the answer, you 
will miss having a breakthrough. It’s okay to do what you did yesterday, but it 
will never be amazing again.". - Rod Favarod, CEO of Spredfast




On Mon, Feb 20, 2017 at 7:55 AM, Paul Schreiner  wrote:

How are your survey results stored?Are they separate files?or have you already 
combined them into one workbook? 
What *I* would do would define an array:Results(QuestionNo, QuestionVal)
Dim Results(1 to 4,1 to 5)
Then, go through your surveys and increment the array value for each 
questionThat is: Question 1, value 1, increment Results(1,1) by 1:
    Results(qNo, qVal) = Results(qNo, qVal) + 1
Once you've populated the array, you can use nested loops to write the values:  
  For qNo = 1 To 4
    For qVal = 1 To 5  Cells(qNo + 1, qVal).Value = Results(qNo, 
qVal) 
    Next qVal
    Next qNo   Since I don't know how your data is formatted, it is difficult 
to write sample code.
I created a worksheet of 1000 surveys, 4 questions each, and random values 1-5.
The entire subroutine to count the values and write out the results was 20 
lines and took less than a second to run!
If you have to open each survey separately, it will take significantly longer :)
let me know if you need additional assistance.
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
-- --- 

On Saturday, February 18, 2017 6:28 PM, Greg Della-Croce 
 wrote:
 

 

I have a sheet of responses to a short survey.   The survey asked 4 questions 
with range answers (1 to 5, 5 being best), and then two open-ended questions.   
I would like to count up the number of each combination of answers with the 
range answers.  So for all of the surveys, I would like to know how many people 
that answered 1 to question 1 answered question 2 - 1, 3 -1, 4-1, and how many 
of those people answered 2-2, 3-1, 4-1,  and how many answered 2-1, 3-2, 4-1, 
and so forth for all of the combinations of answers.   
I just can not figure out the right algorithm to do this without hard-coding 
ever possible combo.  Would someone know where I could get some help doing this 
in Exel, or suggest a better program?
Thanks-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.googl

Re: $$Excel-Macros$$ Password Protection

2017-02-20 Thread Paul Schreiner
That is not an "Excel macros" question.What you're looking for is a method to 
password "encrypt" adobe pdf files (try googling that)
If, in Excel, you have a list of files and the Employee code for each file, you 
may be able to write a macro using SendKeys.
However, Googling "automate password protect pdf files"  seems to provide 
options to create a "batch" process using the Acrobat application. 
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
- 

On Monday, February 20, 2017 12:24 AM, karthikeyan sankaran 
 wrote:
 

 Dear All,
I have 100 adobe Payslip-files in one folder. I have share that folder via mail 
to everyone. Now , I need to enter Employee code that particular Adobe file 
only wants to open. Other adobe Payslip-files does not show to others.
Thanks,karthik.-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Counting up the combinations

2017-02-20 Thread Paul Schreiner
How are your survey results stored?Are they separate files?or have you already 
combined them into one workbook? 
What *I* would do would define an array:Results(QuestionNo, QuestionVal)
Dim Results(1 to 4,1 to 5)
Then, go through your surveys and increment the array value for each 
questionThat is: Question 1, value 1, increment Results(1,1) by 1:
    Results(qNo, qVal) = Results(qNo, qVal) + 1
Once you've populated the array, you can use nested loops to write the values:  
  For qNo = 1 To 4
    For qVal = 1 To 5  Cells(qNo + 1, qVal).Value = Results(qNo, 
qVal) 
    Next qVal
    Next qNo   Since I don't know how your data is formatted, it is difficult 
to write sample code.
I created a worksheet of 1000 surveys, 4 questions each, and random values 1-5.
The entire subroutine to count the values and write out the results was 20 
lines and took less than a second to run!
If you have to open each survey separately, it will take significantly longer :)
let me know if you need additional assistance.
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
- 

On Saturday, February 18, 2017 6:28 PM, Greg Della-Croce 
 wrote:
 

 

I have a sheet of responses to a short survey.   The survey asked 4 questions 
with range answers (1 to 5, 5 being best), and then two open-ended questions.   
I would like to count up the number of each combination of answers with the 
range answers.  So for all of the surveys, I would like to know how many people 
that answered 1 to question 1 answered question 2 - 1, 3 -1, 4-1, and how many 
of those people answered 2-2, 3-1, 4-1,  and how many answered 2-1, 3-2, 4-1, 
and so forth for all of the combinations of answers.   
I just can not figure out the right algorithm to do this without hard-coding 
ever possible combo.  Would someone know where I could get some help doing this 
in Exel, or suggest a better program?
Thanks-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ keep active in memory variables, array variables

2017-02-09 Thread Paul Schreiner
The answer is:Yes.
The long version of the answer involves describing the "scope" of variables.
First of all,in each VBA module, I recommend using 
Option Explicit
as the first line of the module.This forces the compiler to check that all 
variables are EXPLICITLY declared.without it, the first time you use a 
variable, the compiler will define it as type "variant".although I've had it 
auto-define a variable as an integer.
As for declaring variables: placement is important!You declare a variable with 
the Dimstatement.
Dim nrow as integer
declares the variable "nrow" as an integer.
If you put this WITHIN a subroutine, like

Sub Count_Rows()   Dim nRow as Integer...End Sub
then the variable is ONLY recognized for use WITHIN the subroutine.That means 
that if you have a second sub and you want to use the value that you got from 
the Count_Rows sub, you cannot.
If you declare the variable OUTSIDE of a subroutine, it is available for all 
subroutines in the module.
-Option ExplicitDim nRowSub Count_Rows()   For nRow = 1 to 100 ...  
 Next nRowEnd Sub
sub Work_Backwards()  Dim inx  Count_Rows  for inx = nrow to 1 step -1...  
next inxend sub
---
But, if you have multiple modules, or write your code within the sheet module, 
then those variables are only available to that module, not others.
variables defined with the Dim function are not "persistent".That is: they are 
cleared when the macro stops running.
to make a variable "persistent", you need to use the "Global" (or "Public") 
declaration keyword.
Option ExplicitPublic nRowSub Count_Rows...End Sub
This MUST be done outside of a macro, and in a "Standard" module (not a Sheet 
module)
It is perfectly legal to declare a variable as a "Public" variable and also 
within a subroutine as a "local" variable.
When the macros run, they will treat these as two separate variables.
As for array variables:There are many ways of declaring them, depending on how 
you plan to use them.
If, for instance, you don't know what size they will be until run-time,you can 
declare the variable like:
Dim sArray
then, once you decide on a size, you can re-dimension it:
ReDim sArray(nRow) Preserve
Use the VBA help to read up on declaring arrays.
hope this helps.

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
- 

On Thursday, February 9, 2017 10:01 AM, "wltrp...@gmail.com" 
 wrote:
 

 Is it possible in an Excel workbook as long as it is open,to keep active in 
memory variables, array variables? And those, when running aprogram / script 
vba or macro is finished. How to declare variables, array variables? -- 
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 https://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" grou

Re: $$Excel-Macros$$ Formula help needed

2017-02-08 Thread Paul Schreiner
The Match() function will return the relative column for the date matching the 
header.So: Your array of data is in E1:AI1 and if you're looking for the date 
in cell C1, you would use:MATCH(C$1,$E$1:$AI$1)(the "$" will be necessary for 
when you copy the formulas)
In this case, the function returns 31, which is the number of columns beginning 
from column E.The index() function starts with the entire array of data 
(E1:AI7)and uses a row,column offset into this array.
In cell C2, use the formula:=INDEX($E$1:$AI$7,ROW(),MATCH(C$1,$E$1:$AI$1))
the row() function returns the current row.You can then copy this function to 
the rows in column C and D.
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
- 

On Tuesday, February 7, 2017 10:34 AM, Amit Desai (MERU) 
 wrote:
 

  Dear 
Friends,    I am stuck while preparing a dashboard. I need auto pickup of data 
based (in cell highlighted yellow) on model & date from the right side. If I 
change date (from 31-Jan-17 to 27-Jan-17) the data should change..    I think 
Index/Match with vlookup should work.. but not sure how to use it.. please 
help.              Best Regards, Amit Desai Contact: - 09867232534    
Disclaimer: This message and its attachments contain confidential information 
and may also contain legally privileged information. This message is intended 
solely for the named addressee. If you are not the addressee indicated in this 
message (or authorized to receive for addressee), you may not copy or deliver 
any part of this message or its attachments to anyone or use any part of this 
message or its attachments. Rather, you should permanently delete this message 
and its attachments (and all copies) from your system and kindly notify the 
sender by reply e-mail. Any content of this message and its attachments that 
does not relate to the official business of Meru Cab Company Pvt. Ltd. must be 
taken not to have been sent or endorsed by any of them. Email communications 
are not private and no warranty is made that e-mail communications are timely, 
secure or free from computer virus or other defect.-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ about conversion of excel to text file.

2017-02-08 Thread Paul Schreiner
The format .csv is a comma separated field format. (Comma Separated Values)
You should be able to use File->Save As->and choose this type.
I'm not sure what you're expecting with the "space between all columns and 
values".
If you are expecting a comma AND a space between each column,then you're going 
to need a VBA macro to accomplish this.
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
- 

On Tuesday, February 7, 2017 3:50 PM, Pravin Choudhari 
 wrote:
 

 I have 10 columns in excel and want to convert into the text file. I tried 
when saved in the text file it shows a lot of spaces between columns. my 
requirement is each column and values should be separated by a comma and there 
should be space between all columns and values. Please help me.-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ VBA: Compile error: User-defined type not defined

2017-02-06 Thread Paul Schreiner
I took a quick look myself.There doesn't seem to be a "standard" data type 
called "Table".
Where you've used it before, do you have other macros (or class modules) that 
define this data type?
In the other application (that works) try right-clicking on the word "Table" 
in: Dim myTable As Table and select "Definition".this will tell you where the 
keyword is defined.
Perhaps the other application has an additional "Reference" included.
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
- 

On Saturday, February 4, 2017 3:11 PM, Nane Amiryan 
 wrote:
 

 Hi,
I am trying to save images of chart and table of the same excel workbook and 
then send them automated email. All works except saving the image of the table. 
I am getting the following error message: 
Compile error:
User-defined type not defined 

Here is the  VBA  code below: 

Sub Table6()


Dim objTable As TableObject
Dim myTable As Table

Set objTable = Sheets("Invalid BOL - Offender List").TableObjects("Table6")
Set myTable = objTable.Table

myFileName = "Invalid BOL.png"
On Error Resume Next
Kill ThisWorkbook.Path & "" & myFileName
On Error GoTo 0

myChart.Export Filename:=ThisWorkbook.Path & "" & myFileName, Filtername:="PNG"


End Sub

The compile error refers to the part of the code highlighted in red. I have a 
simialr code for the chart image wchih works totally fine. I tired searching, 
but nothing specifically on this. 
Do you know what's the problem? 

Help much appreciated!-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need Help - Data validation selection from drop down list to auto-populate a range of cells below it

2017-02-06 Thread Paul Schreiner
You can create a Worksheet_Change event.check to see if the cell changed 
(Target) is the cell with your pull-down selection, then process accordingly: 
Private Sub Worksheet_Change(ByVal Target As Range)
    If (Target.Address = "$A$4") Then
    Debug.Assert False
    End If
End Sub
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
- 

On Sunday, February 5, 2017 8:43 AM, Eric Butash 
 wrote:
 

 Hi all,
I'm stuck trying to find the correct method to auto-populate a range of cells 
based on a selection.  See the image below.   When a teacher selects the 
subject from the list (cell A4), a list of standards (A5:A9) automatically 
paste below.  What's the best method to accomplish this?  
Thanks,Eric 

DISCLAIMER: E-mails and any attachments from the Highlander Institute are 
confidential. If you are not the intended recipient, please notify the sender 
immediately by replying to the e-mail, and then delete it without making copies 
or using it in any way. No representation is made that this email or any 
attachments are free of viruses. Virus scanning is recommended and is the 
responsibility of the recipient. v2456857-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ changing required in the attach macro

2017-01-24 Thread Paul Schreiner
Please remember to follow forum rule #1: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.
It helps to attract a person best able to assist in the specific problem!(but 
it's my lunch break and I was bored)
You could change your macro to loop through the entire range like:
Sub selectcaseexample()
    Dim rng
    For Each rng In Range("B2:B16")
    Select Case rng.Value
    Case 91 To 100: rng.Offset(0, 1).Value = "Distinction"
    Case 81 To 90: rng.Offset(0, 1).Value = "Very good"
    Case 71 To 80: rng.Offset(0, 1).Value = "Good"
    Case 61 To 70: rng.Offset(0, 1).Value = "Alright"
    Case Else: rng.Offset(0, 1) = "Poor"
    End Select
    Next rng
End Sub
 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
- 

On Tuesday, January 24, 2017 11:13 AM, Izhar  wrote:
 

 Please find the question in the attachment
Thanks brothers
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ MACRO FOR COPYING A RANGE FOR MULTIPLE TIMES

2017-01-23 Thread Paul Schreiner
Are you wanting the end result such that cell A19 contains "Bill" (the value of 
A2)A20 = JoeA21 = DaveA22 = Fredand so on, then repeating this series for 15 
sets?
For THAT, you could use something like:Option ExplicitSub Dup_Sets()
    Dim nRow, nRows, dRow, SetCnt, SetNo
    SetCnt = 15
    
    nRows = Application.WorksheetFunction.CountA(Range("A:A"))
    
    For SetNo = 1 To SetCnt - 1
    For nRow = 2 To nRows
    Debug.Print nRow + (SetNo * (nRows - 1))
    Cells(nRow + (SetNo * (nRows - 1)), "A").Value = Cells(nRow, 
"A").Value
    Next nRow
    Next SetNo
End Sub
If that's not what you meant, then I need further explanation.

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
- 

On Friday, January 20, 2017 11:15 PM, Izhar  wrote:
 

 
I need code for the above nameSCENARIOif I want to copy the above names below 
the range for about 15 times-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Double Asterisks Problem

2017-01-18 Thread Paul Schreiner
The "escape" character in Excel filters is a tilde (~)
so, in your filter, you could look for records that begin with ~*~*
 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
- 

On Wednesday, January 18, 2017 12:06 PM, Bill Q  
wrote:
 

 Hi, 
I have a large list with part descriptions. We use two asterisks at the 
beginning of a part number as a special internal message. In Excel I cannot 
find a way to filter two asterisks together as it is obviously treating it as a 
wildcard.
How can I get around this ?
Thanks. -- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ something wrong with the attach macro

2017-01-18 Thread Paul Schreiner
I made a minor change and it works for me:
Option Explicit
Sub InvoiceVariables()Dim InvoiceDate As Date
Dim InvoiceID As Long
Dim Client As String
Dim subTotal As Currency
Dim Salestax As Currency
Dim invoiceTotal As Currency
InvoiceDate = Sheets("Invoice").Range("E2").Value
InvoiceID = Sheets("Invoice").Range("E3").Value
Client = Sheets("Invoice").Range("E7").Value
subTotal = Sheets("Invoice").Range("E30").Value
Salestax = Sheets("Invoice").Range("E32").Value
invoiceTotal = Sheets("Invoice").Range("E34").ValueWorksheets("invoice 
tracker").ActivateRange("A300").End(xlUp).Offset(1, 0).Select
ActiveCell.Value = InvoiceID
ActiveCell.Offset(0, 1).Value = InvoiceDate
ActiveCell.Offset(0, 2).Value = Client
ActiveCell.Offset(0, 3).Value = subTotal
ActiveCell.Offset(0, 4).Value = Salestax
ActiveCell.Offset(0, 5).Value = invoiceTotalEnd Sub
 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
- 

On Wednesday, January 18, 2017 11:39 AM, Izhar  wrote:
 

 I want to move the details of sheet "Invoice" to "Invoice Tracker", Please 
check where I'm making a mistake.

Thanks in advance    

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ converting sheet to macro

2017-01-18 Thread Paul Schreiner
So, you're saying that you're trying to learn how to write macros and you'd 
like us to write a macro that would take the list in columns A:F and create the 
list in columns I:L?
The problem with that is that you're asking us to take the "input" (columns 
A:F) and compare it to the output (columns I:L) and "guess" what criteria was 
used to get the result. 
On top of that, you have the fields being randomly generated!
so, I cannot tell what the original input data was to even BEGIN to guess what 
criteria is used to determine output.
I'm sorry, but I'm not sure where to begin.
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
- 

On Tuesday, January 17, 2017 10:57 PM, GENIUS  wrote:
 

 sometime when you have to learn a new function or formula, for this purpose 
one must have a file on which the same function or formula must be applied so I 
need a data set for my learning about a new function or new formula, I have 
created it thru function but the same I want to create thru macro, so would you 
please make the same file thru macro.

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ converting sheet to macro

2017-01-17 Thread Paul Schreiner
 What exactly are you trying to do?I see in your attachment, that you have a 
list of employees with Department, Hiring Year, Region, Gender and "Amount"
Then, it seems you've begun a list with only the Hiring year, Gender, 
Department and Region.
so, are you simply taking the information from the first list and creating the 
second?What do you do with duplicates? (two or three employees in the same 
department)?
If you were doing it manually, what steps would you perform?
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
- 

On Tuesday, January 17, 2017 5:22 AM, Izhar  wrote:
 

 Hi everyone

If I want to create a data for working in excel as shown in the
attachment, how do I create it thru macro, someone please look into
the matter.
Thank in advance

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ How to use Index Match for two different files

2017-01-13 Thread Paul Schreiner
I'm sorry.I'm not sure what you're trying to do!
Your two attachments have a single column of data.They have (7) values in 
common, but I'm not sure what you want to do with them.What macro did you 
modify?

 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
- 

On Friday, January 13, 2017 2:29 AM, Devendra Sahay 
 wrote:
 

 Hi Paul
I tried to modify the code according to attached data set, but its not going 
through. Would you, please look into this. 
Both details are extracted from ERP, So need to convert them as number before 
running the macro.
On Tue, Jan 10, 2017 at 6:56 PM, Paul Schreiner  wrote:

Yes, Excel/VBA has nearly unlimited flexibility.But I have no way of knowing 
what YOU think the possibilities are and what the columns potentially can be.
I have applications in which I define variables for the different 
heading/column combinations.then write to these column numbers.That way, I can 
rearrange the output columns in any order and the report automatically writes 
to the appropriate column.
but I have no way of determining what you want unless you can describe it in a 
way I can understand. 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
-- --- 

On Tuesday, January 10, 2017 4:07 AM, Devendra Sahay 
 wrote:
 

 Hi Paul,
Code is working fine, but can we make this code more flexible like It can 
identify the header name itself because right now its configured to first 
column as Order ID. Column header of "A" can be anything. If you can do so, 
would be really good because then we can use the same file for multiple data 
sets. 
Thanks,Devendra


On Mon, Jan 9, 2017 at 11:18 PM, Paul Schreiner  wrote:

Take a look at the macros attached.See if it looks like what you envisioned, or 
at least gives you a starting point.
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
-- --- 

On Monday, January 9, 2017 11:23 AM, Devendra Sahay 
 wrote:
 

 Paul, I mean to say first occurrence of the order id. 
On Jan 9, 2017 9:51 PM, "Paul Schreiner"  wrote:

First occurrence of... what?First occurrence of the  Order ID?customer ID?
Is the data already sorted in the order by which you want to determine "first 
occurrence"?

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
-- --- 

On Monday, January 9, 2017 11:06 AM, Devendra Sahay 
 wrote:
 

 Paul, Thanks for your reply. Can we extract the details of first occurrence. 
there might be some issues with the sample data, always the data will be unique 
and clean.
On Jan 9, 2017 8:36 PM, "Paul Schreiner"  wrote:

I'm not sure what RESULT you're expecting.
For instance, Order ID #CA-2014-AB10015140-41954 has two entries in the 
"Dump.xlsx" file.Row 40098 is identical to row 40099 except for the Product 
related data (ID, Category, Sub-Cat, Name, Sales, Profit, Shipping)
So, what do you wish to record in the Workbook2.xlsx 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
-- --- 

On Saturday, January 7, 2017 10:42 PM, Devendra Sahay 
 wrote:
 

 Hi Team,
Sorry for posting such a long query on the forum, but am working on few reports 
in which I have to write the Index match formula multiple times on daily basis. 
So am thinking to write a macro for this but as I am new to VBA, am not able to 
do so. If you guys can help me out here, would be really appreciated. 
Scenario- 
I have a dump file with the record in the columns & rows with headers. I have a 
another file in which I want to extract the details from the dump file in the 
respect of header & the value. The value (It could be number or the text), of 
which details I want to pull from dump file, always be in the first column in 
the workbook. and also the headers will be also the same in both workbook for 
easily map the data.


Required Solution- 
Code needs t

Re: $$Excel-Macros$$ Help Required

2017-01-12 Thread Paul Schreiner
First of all, take a look at the Forum "rules".some of them are just simple 
good ideas, like: 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.
The fact is: EVERYONE that posts a question to the group is looking for 
assistance.Everyone here has their own area of expertise, or at least 
experience.If your question is regarding Pivot Tables, you'd like someone that 
has experience in Pivot tables to answer your question!I get 30-80 emails each 
day.When I have a few minutes available, I look through them to see which ones 
I can answer in the time I have available.BASED ON THE THREAD TITLE.
Normally, I ignore any that say "Help Required", or "Urgent" because if I have 
20 minutes to spend, I don't want to spend 18 of it trying to figure out what 
is needed...
In this case, I had cleared my in-box earlier in the day and since I had 20 
minutes while some data was formatted, I decided to take a look at a post that 
others had ignored.
So... to your question:
I wrote a macro that clears all sheets except the one called "Master" and then 
copies the data into new sheets (creating them as required).
hope this points you in the right direction.


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
- 

On Thursday, January 12, 2017 3:43 AM, sriram ji  
wrote:
 

 Hi Excel Guru,
Kindly help me the below attached file,
Thanks in advance.
Thanks  & Regards,Sriram G -- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Copy_to_Sheets.xlsb
Description: application/vnd.ms-excel.sheet.binary.macroenabled.12


Re: $$Excel-Macros$$ Index+Match+Indirect+Address formula

2017-01-11 Thread Paul Schreiner
OK.
It sounds like you're saying that you have some reporting software that 
generates a report file.But evidently I don't understand what it is you're 
trying to do.
Can you describe it step-by-step with examples?What does the file generated by 
your software look like?what do you do with it?
I have the two files you sent originally, but I don't see what information is 
common between the two files,so I don't know how you get from the "Index-Match" 
file to the "output" 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
- 

On Tuesday, January 10, 2017 11:48 PM, amar takale  
wrote:
 

 Dear Paul

Good Morning.

Exact explanation by you regarding my issue.Required field (like net 
sales,Share capital,cash) extract after match year & show in output sheet.

And also one thing that there are no need to open 100 sheet bcos all sheet 
extract from our software with same format (only field up & down if any issue 
otherwise same format).Once output sheet prepared with formula OR VBA in folder 
then next time all sheet extract from software & overwrite on it in same folder 
so data update 100 sheet automatically from software.No required to check 
updation of each sheet.

Pls suggest formula OR VBA.Send example sheet.

Other two members group try to solution my issue but I cant understand their 
language. 

Regards
Amar


On Wed, Jan 11, 2017 at 9:04 AM, martinez.david533 via MS EXCEL AND VBA MACROS 
 wrote:


-- --
On Wed, 1/11/17, silvers.r via MS EXCEL AND VBA MACROS 
 wrote:

 Subject: Re: $$Excel-Macros$$ Index+Match+Indirect+Address formula
 To: excel-macros@googlegroups.com
 Date: Wednesday, January 11, 2017, 1:17 AM


 -- --
 On Wed, 1/11/17, julienneschindler via MS EXCEL AND VBA
 MACROS 
 wrote:

  Subject: Re: $$Excel-Macros$$ Index+Match+Indirect+Address
 formula
  To: excel-macros@googlegroups.com
  Date: Wednesday, January 11, 2017, 1:13 AM


  -- --
  On Tue, 1/10/17, derrickandrew994 via MS EXCEL AND VBA
  MACROS 
  wrote:

   Subject: Re: $$Excel-Macros$$
 Index+Match+Indirect+Address
  formula
   To: excel-macros@googlegroups.com
   Date: Tuesday, January 10, 2017, 7:12 PM
  
  
   ------ --
   On Tue, 1/10/17, Paul Schreiner 
   wrote:
  
    Subject: Re: $$Excel-Macros$$
  Index+Match+Indirect+Address
   formula
    To: "excel-macros@googlegroups.com "
   
    Date: Tuesday, January 10, 2017, 3:59 PM
   
    OK,
    I think I've worked through your
    requirements...You
    have a folder with more than 100 workBOOKS.Each
  workbook is
   for a specific company (AAB,
    Infy, TATA, etc.)Each workbook has three workSHEETS
  (often
   called "Sheets" and are
    displayed as "tabs" across the bottom of the
    Excel window) for:Profit
    & loss A/CBalance
    SheetCash
    Flow
    Your goal is to have a workbook with a Summary
    sheet thatshows specific data like:Net
    salesNet
    ProfitShare
    CapitalCashfrom each of the 100+
   workbooksYour use of the =INDIRECT()
   function is nicely
    done.Many users have difficulty with the concept of
    using cell values to "indirectly" refer to other
    worksheets.
    However, in this case, I wouldn't recommend
    it.
    As you no doubt are aware, you cannot use this to
    refer to a worksheet that doesn't exist.in the same
  way,
   you CAN use this to refer to a
    worksheet in another workbook, but the workbook must
  be
    OPEN.That means that if your summary
    sheet refers to sheets in 100 workbooks, all of the
    workbooks would need to be open at the same
  time!Which
   would require quite a bit in system
    resources.
    this kind of thing can be easily done
    with VBA.
    I can help with this if you'd like.I've done it
  before with
   nearly 300
    workbooks.
   
    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
    -- ---
   
   
    
      On Tuesday, January 10, 2017 2:34 AM,
    amar takale 
   wrote:
      
   
    
   
    Dear Friends
   
     
   
    There are more than 100
    Excel Sheets (Company Name like AAB,
    Infy, TATA) in folder. Each Sheet there are 3 tab
  (Profit
    & loss A/C,
    Balalnce Sheet, Cash Flow from 10 years).I Required
   Separate
    one Output Excel
    sheet where

Re: $$Excel-Macros$$ Index+Match+Indirect+Address formula

2017-01-10 Thread Paul Schreiner
OK, I think I've worked through your requirements...You have a folder with more 
than 100 workBOOKS.Each workbook is for a specific company (AAB, Infy, TATA, 
etc.)Each workbook has three workSHEETS (often called "Sheets" and are 
displayed as "tabs" across the bottom of the Excel window) for:   
   
   - Profit & loss A/C
   - Balance Sheet
   - Cash Flow

Your goal is to have a workbook with a Summary sheet thatshows specific data 
like:   
   - Net sales
   - Net Profit
   - Share Capital
   - Cash
from each of the 100+ workbooksYour use of the =INDIRECT() 
function is nicely done.Many users have difficulty with the concept of using 
cell values to "indirectly" refer to other worksheets.
However, in this case, I wouldn't recommend it.
As you no doubt are aware, you cannot use this to refer to a worksheet that 
doesn't exist.in the same way, you CAN use this to refer to a worksheet in 
another workbook, but the workbook must be OPEN.That means that if your summary 
sheet refers to sheets in 100 workbooks, all of the workbooks would need to be 
open at the same time!Which would require quite a bit in system resources.
this kind of thing can be easily done with VBA.
I can help with this if you'd like.I've done it before with nearly 300 
workbooks.

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
- 

On Tuesday, January 10, 2017 2:34 AM, amar takale  
wrote:
 

 Dear Friends There are more than 100 Excel Sheets (Company Name like AAB,Infy, 
TATA) in folder. Each Sheet there are 3 tab (Profit & loss A/C,Balalnce Sheet, 
Cash Flow from 10 years).I Required Separate one Output Excelsheet where I 
extract specific data (like Net sales, Net Profit, Share Capital,Cash) from 
Each sheet (like ABB,TATA) from each tab. I require excel formula like extract 
data from all sheetsfrom each tab and then show in output sheet. From that way 
I would not requiredto open each sheet & link it. only open output sheet & see 
& updatedata automatically when that sheet update anyone. I think index match 
+indirect +address formula work for that. I create one output sheet (attached) 
through this formulabut it work for only internal tab & I want formula extract 
data formexternal sheet from different tab in folder. Here I attached index 
match+indirect using formula sheet butit for only internal tab.in this formula 
required add address command forexternal sheet name source from that folder. 
Pls send any solution which is valuable (formula OR VBA) ORany good idea for 
that. RegardsAmar-- 
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 https://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 emai

Re: $$Excel-Macros$$ How to use Index Match for two different files

2017-01-10 Thread Paul Schreiner
Yes, Excel/VBA has nearly unlimited flexibility.But I have no way of knowing 
what YOU think the possibilities are and what the columns potentially can be.
I have applications in which I define variables for the different 
heading/column combinations.then write to these column numbers.That way, I can 
rearrange the output columns in any order and the report automatically writes 
to the appropriate column.
but I have no way of determining what you want unless you can describe it in a 
way I can understand. 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
- 

On Tuesday, January 10, 2017 4:07 AM, Devendra Sahay 
 wrote:
 

 Hi Paul,
Code is working fine, but can we make this code more flexible like It can 
identify the header name itself because right now its configured to first 
column as Order ID. Column header of "A" can be anything. If you can do so, 
would be really good because then we can use the same file for multiple data 
sets. 
Thanks,Devendra


On Mon, Jan 9, 2017 at 11:18 PM, Paul Schreiner  wrote:

Take a look at the macros attached.See if it looks like what you envisioned, or 
at least gives you a starting point.
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
-- --- 

On Monday, January 9, 2017 11:23 AM, Devendra Sahay 
 wrote:
 

 Paul, I mean to say first occurrence of the order id. 
On Jan 9, 2017 9:51 PM, "Paul Schreiner"  wrote:

First occurrence of... what?First occurrence of the  Order ID?customer ID?
Is the data already sorted in the order by which you want to determine "first 
occurrence"?

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
-- --- 

On Monday, January 9, 2017 11:06 AM, Devendra Sahay 
 wrote:
 

 Paul, Thanks for your reply. Can we extract the details of first occurrence. 
there might be some issues with the sample data, always the data will be unique 
and clean.
On Jan 9, 2017 8:36 PM, "Paul Schreiner"  wrote:

I'm not sure what RESULT you're expecting.
For instance, Order ID #CA-2014-AB10015140-41954 has two entries in the 
"Dump.xlsx" file.Row 40098 is identical to row 40099 except for the Product 
related data (ID, Category, Sub-Cat, Name, Sales, Profit, Shipping)
So, what do you wish to record in the Workbook2.xlsx 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
-- --- 

On Saturday, January 7, 2017 10:42 PM, Devendra Sahay 
 wrote:
 

 Hi Team,
Sorry for posting such a long query on the forum, but am working on few reports 
in which I have to write the Index match formula multiple times on daily basis. 
So am thinking to write a macro for this but as I am new to VBA, am not able to 
do so. If you guys can help me out here, would be really appreciated. 
Scenario- 
I have a dump file with the record in the columns & rows with headers. I have a 
another file in which I want to extract the details from the dump file in the 
respect of header & the value. The value (It could be number or the text), of 
which details I want to pull from dump file, always be in the first column in 
the workbook. and also the headers will be also the same in both workbook for 
easily map the data.


Required Solution- 
Code needs to be written in the workbook 2,where i want to map the values from 
dump. When I hit the run macro button, macro will open a dialogue box to select 
the file & after selecting the file, It starts the mapping of values. 
Sharing both sample files, Dump & the Workbook2. 

-- 

With Regards !!!Devendra
-- 
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) Acknowle

Re: $$Excel-Macros$$ How to use Index Match for two different files

2017-01-09 Thread Paul Schreiner
Take a look at the macros attached.See if it looks like what you envisioned, or 
at least gives you a starting point.
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
- 

On Monday, January 9, 2017 11:23 AM, Devendra Sahay 
 wrote:
 

 Paul, I mean to say first occurrence of the order id. 
On Jan 9, 2017 9:51 PM, "Paul Schreiner"  wrote:

First occurrence of... what?First occurrence of the  Order ID?customer ID?
Is the data already sorted in the order by which you want to determine "first 
occurrence"?

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
-- --- 

On Monday, January 9, 2017 11:06 AM, Devendra Sahay 
 wrote:
 

 Paul, Thanks for your reply. Can we extract the details of first occurrence. 
there might be some issues with the sample data, always the data will be unique 
and clean.
On Jan 9, 2017 8:36 PM, "Paul Schreiner"  wrote:

I'm not sure what RESULT you're expecting.
For instance, Order ID #CA-2014-AB10015140-41954 has two entries in the 
"Dump.xlsx" file.Row 40098 is identical to row 40099 except for the Product 
related data (ID, Category, Sub-Cat, Name, Sales, Profit, Shipping)
So, what do you wish to record in the Workbook2.xlsx 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
-- --- 

On Saturday, January 7, 2017 10:42 PM, Devendra Sahay 
 wrote:
 

 Hi Team,
Sorry for posting such a long query on the forum, but am working on few reports 
in which I have to write the Index match formula multiple times on daily basis. 
So am thinking to write a macro for this but as I am new to VBA, am not able to 
do so. If you guys can help me out here, would be really appreciated. 
Scenario- 
I have a dump file with the record in the columns & rows with headers. I have a 
another file in which I want to extract the details from the dump file in the 
respect of header & the value. The value (It could be number or the text), of 
which details I want to pull from dump file, always be in the first column in 
the workbook. and also the headers will be also the same in both workbook for 
easily map the data.


Required Solution- 
Code needs to be written in the workbook 2,where i want to map the values from 
dump. When I hit the run macro button, macro will open a dialogue box to select 
the file & after selecting the file, It starts the mapping of values. 
Sharing both sample files, Dump & the Workbook2. 

-- 

With Regards !!!Devendra
-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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 re

Re: $$Excel-Macros$$ How to use Index Match for two different files

2017-01-09 Thread Paul Schreiner
First occurrence of... what?First occurrence of the  Order ID?customer ID?
Is the data already sorted in the order by which you want to determine "first 
occurrence"?

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
- 

On Monday, January 9, 2017 11:06 AM, Devendra Sahay 
 wrote:
 

 Paul, Thanks for your reply. Can we extract the details of first occurrence. 
there might be some issues with the sample data, always the data will be unique 
and clean.
On Jan 9, 2017 8:36 PM, "Paul Schreiner"  wrote:

I'm not sure what RESULT you're expecting.
For instance, Order ID #CA-2014-AB10015140-41954 has two entries in the 
"Dump.xlsx" file.Row 40098 is identical to row 40099 except for the Product 
related data (ID, Category, Sub-Cat, Name, Sales, Profit, Shipping)
So, what do you wish to record in the Workbook2.xlsx 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
-- --- 

On Saturday, January 7, 2017 10:42 PM, Devendra Sahay 
 wrote:
 

 Hi Team,
Sorry for posting such a long query on the forum, but am working on few reports 
in which I have to write the Index match formula multiple times on daily basis. 
So am thinking to write a macro for this but as I am new to VBA, am not able to 
do so. If you guys can help me out here, would be really appreciated. 
Scenario- 
I have a dump file with the record in the columns & rows with headers. I have a 
another file in which I want to extract the details from the dump file in the 
respect of header & the value. The value (It could be number or the text), of 
which details I want to pull from dump file, always be in the first column in 
the workbook. and also the headers will be also the same in both workbook for 
easily map the data.


Required Solution- 
Code needs to be written in the workbook 2,where i want to map the values from 
dump. When I hit the run macro button, macro will open a dialogue box to select 
the file & after selecting the file, It starts the mapping of values. 
Sharing both sample files, Dump & the Workbook2. 

-- 

With Regards !!!Devendra
-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at 

Re: $$Excel-Macros$$ How to use Index Match for two different files

2017-01-09 Thread Paul Schreiner
I'm not sure what RESULT you're expecting.
For instance, Order ID #CA-2014-AB10015140-41954 has two entries in the 
"Dump.xlsx" file.Row 40098 is identical to row 40099 except for the Product 
related data (ID, Category, Sub-Cat, Name, Sales, Profit, Shipping)
So, what do you wish to record in the Workbook2.xlsx 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
- 

On Saturday, January 7, 2017 10:42 PM, Devendra Sahay 
 wrote:
 

 Hi Team,
Sorry for posting such a long query on the forum, but am working on few reports 
in which I have to write the Index match formula multiple times on daily basis. 
So am thinking to write a macro for this but as I am new to VBA, am not able to 
do so. If you guys can help me out here, would be really appreciated. 
Scenario- 
I have a dump file with the record in the columns & rows with headers. I have a 
another file in which I want to extract the details from the dump file in the 
respect of header & the value. The value (It could be number or the text), of 
which details I want to pull from dump file, always be in the first column in 
the workbook. and also the headers will be also the same in both workbook for 
easily map the data.


Required Solution- 
Code needs to be written in the workbook 2,where i want to map the values from 
dump. When I hit the run macro button, macro will open a dialogue box to select 
the file & after selecting the file, It starts the mapping of values. 
Sharing both sample files, Dump & the Workbook2. 

-- 

With Regards !!!Devendra
-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ move sheets to a workbook

2017-01-09 Thread Paul Schreiner
Take a look at the macros in the attached file.Note: macros cannot be stored in 
.xlsx files. They must be in type .xlsm or .xlsb (which I prefer)
Secondly, the use of terminology in the description of your requirement is 
important.In your requirement: "I want to transfer all the 31 workbooks to 
PETTY CASH FOR JAN 2016 file"to ME means that you want to copy all of the 
sheets in the 31 workbooks to your "Petty Cash" workbook.Even though you SAID 
there is only one sheet in each workbook, some of them contain more than one 
sheet (like 9-1-2016.xlsx, which contains two blank sheets)If only the first 
sheet is used, "transferring" all of the workbooks" to ME means that the result 
is a workbook containing 31 sheets (plus the original sheet).
Copying the DATA (or "content") of the first sheet of each workbook results in 
a workbook with a single sheet containing all the data from the workbooks.
I wrote two macros:
Sub Copy_Sheets()  results in a workbook with 32 sheets.
Sub Import_Sheets() results in a workbook with a single sheet and 522 rows of 
data.
take a look at the macros and see if you follow what I did.(or try them both 
and let me know which comes closer to your intent.
 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
- 

On Sunday, January 8, 2017 3:17 AM, GENIUS  wrote:
 

 Hi Mr Paul
in view of your answer i tried to solve the question but could not, there are 
chances that I may not explain my question, but you may see the second time 
explanation, please do the needful, it is very important, I appreciate the 
efforts you have made.

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


PETTY CASH FOR JAN 2016.xlsb
Description: application/vnd.ms-excel.sheet.binary.macroenabled.12


Re: $$Excel-Macros$$ HOW TO CHANGE VBA TO COPY DATA IRRESPECTIVE OF WORKSHEET NAME

2017-01-09 Thread Paul Schreiner
Does the current path have more than one zip file?more than one csv file?
How do you determine which zip file (and csv file) you will process?(is it the 
latest file?)
You can use the FileSystem object     Set fso = 
CreateObject("Scripting.FileSystemObject")
to cycle through the folder, looking for the latest zip file:
 Sub Find_Zip()
    Dim fso, fldr, file, f, ext, zFile, zDate
    Dim dVal
    Set fso = CreateObject("Scripting.FileSystemObject")
    zDate = DateValue("1/1/1960")
    
    Set fldr = fso.getfolder(ActiveWorkbook.Path)
    For Each file In fldr.Files
    ext = fso.getextensionname(file)
    If (UCase(ext) = "XLSX") Then
    If (file.datelastmodified > zDate) Then
    zDate = file.datelastmodified
    zFile = file.Name
    End If
    End If
    Next file
    Debug.Print zDate & " : " & zFile
End Sub

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
- 

On Saturday, January 7, 2017 2:11 PM, 'vijay v.j.r' via MS EXCEL AND VBA 
MACROS  wrote:
 

 Below VBA CODE working properly to extract data from zip file if my zip file 
presents in C:\Users\max\Downloads..
i.e if i import data , it unzip the zipped file and copy the csv data inside 
zip file and paste it in the workbook which i need, but the problem is 
"fo26DEC2016bhav.csv.zip" zip name will change daily ,and i need to download 
the data and update it , in my workbook worksheet, so my vba code has to be 
changed as per it can daily update data irrespective of zip name and worksheet 
name in my workbook, so kindly help me to correct 

Sub ImportDailyData()
Dim strFileName As String, str7ZIP As String, strZipFile As String, 
strDestinationFolder As String, strCMD As String
Dim WshShell As Object, fso As Object
Dim WB As Workbook
Dim ThisWB As Workbook
Dim WS As Worksheet
Dim ThisWS As Worksheet

strFileName = "fo26DEC2016bhav.csv"
str7ZIP = "C:\Program Files (x86)\7-Zip\7z.exe"
strDestinationFolder = ActiveWorkbook.Path
strZipFile = strDestinationFolder & "\fo26DEC2016bhav.csv.zip"
Set ThisWB = ActiveWorkbook

If Right(strDestinationFolder, 1) <> "\" Then strDestinationFolder = 
strDestinationFolder & "\"

Set WshShell = CreateObject("Wscript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")

If Not fso.FileExists(str7ZIP) Then
    MsgBox "Could not find 7-Zip:  " & vbCrLf & vbCrLf & str7ZIP, 
vbExclamation, "fo26DEC2016bhav.csv"
    Exit Sub
End If

strCMD = Chr(34) & str7ZIP & Chr(34) & " e -i!" & _
        Chr(34) & strFileName & Chr(34) & " -o" & _
        Chr(34) & strDestinationFolder & Chr(34) & " " & _
        Chr(34) & strZipFile & Chr(34) & " -y"


WshShell.Run strCMD, 0, True

If Not fso.FileExists(strDestinationFolder & strFileName) Then
    MsgBox "Failed to get file:  " & strDestinationFolder & strFileName, 
vbExclamation, "fo26DEC2016bhav.csv"
    Exit Sub
Else
    '---> Stop Events
    With Application
        .EnableEvents = False
        .ScreenUpdating = False
        .DisplayAlerts = False
    End With
    
    '---> Open the Import Workbook
    Set WB = Workbooks.Open(strDestinationFolder & strFileName)
    
    '---> Clean Current Data in present workbook
    For Each WS In ThisWB.Worksheets
        If WS.Name <> "Main" Then
            WS.UsedRange.EntireRow.Delete
        End If
    Next WS
    '---> Get Data
    For Each WS In WB.Worksheets
        Set ThisWS = ThisWB.Worksheets(WS.Name)
        WS.UsedRange.Copy ThisWS.Range("A1")
        ThisWS.UsedRange.EntireColumn.AutoFit
    Next WS
    
    '---> Close WB
    Application.DisplayAlerts = False
    WB.Close savechanges:=False
    Kill strDestinationFolder & strFileName
    Application.DisplayAlerts = True
    
    '---> Clean Variables
    Set WB = Nothing
    Set WS = Nothing
    
    '---> Enable Events
    With Application
        .EnableEvents = True
        .ScreenUpdating = True
        .DisplayAlerts = True
    End With
    
    '---> Advise user
    MsgBox ("Import Daily data successfull.")
End If


End Sub
below is zip file and have upload my excel file

https://www.nseindia.com/content/historical/DERIVATIVES/2016/DEC/fo26DEC2016bhav.csv.zip

my excel file 

https://drive.google.com/file/d/0BxNxUBpCACzNN01mSGM0VlpQN1k
-- 
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

Re: $$Excel-Macros$$ copy only yellow cells

2017-01-09 Thread Paul Schreiner
This can be done fairly easily with VBA:Sub CopyCells()
    Dim Rng As Range, nRow
    '---
    Sheets("Sheet1").Cells.ClearContents
    nRow = 0
    '---
    For Each Rng In Sheets(1).UsedRange
    If (Rng.Interior.Color = 49407) Then
    nRow = nRow + 1
    Sheets("Sheet1").Cells(nRow, "A").Value = Rng.Value
    End If
    Next Rng
End Sub
I don't know that it can be done "at the same time" within Excel.
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
- 

On Saturday, January 7, 2017 2:33 AM, Izhar  wrote:
 

 I want to copy only yellow cells in different column at the same time and 
paste it in another blank sheet 


-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ move sheets to a workbook

2017-01-06 Thread Paul Schreiner
How do you envision this working?Say:You have folders:
January 2016February 2016March 2016April 2016May 2016June 2016
in each folder you have 30 files (presumably Excel files)In your sample 
file, you said you "want to move all thirty sheets".Does that mean that there 
is only one sheet in each of the 30 workbooks,or that you only want to move one 
of the sheets in each workbook?Also: If you move the sheets, that means that 
the original workbook no longer has the sheetbut your new workbook now has 30 
sheets.Is that what you want? or do you want to COPY the data from each of the 
30 sheetsinto a single sheet of the new workbook?
Do you want a macro to do all the folders in the "parent" folder or do you want 
to select which folder to process?

Attached are two files.Detach them and place them in the folder containing the 
monthly sub-folders.
The "Template.xlsx" file is used as the basic template for the report for a 
given month.The macro copies this file to a file called "PETTY CASH FOR " and 
the name of the folder.
I created two buttons in the Composite_Macro.xlsb file.The first button creates 
a list of the sub-folders "beneath" the folder where this file resides.
once you have the list of folders, put an "X" in column B for those you wish to 
process.
then hit the "Gen Selected" button.
The report files will be in the same folder as the "Composite Macro" file.
To test, I created (6) folders, named "January 2016" through "June 2016".In 
each folder, I copied your sample file 30 times (so I had 180 copies)
I then made reports for all 6 folders.
It took about 90 seconds.

hope this gives you enough to work with.
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
- 

On Friday, January 6, 2017 11:45 AM, Izhar  wrote:
 

 
Hi everyone

I need help in the attach file, the question has defined in the attach workbook 
and I hope there will be someone look into the matter.
Thanks in advance.


-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Template.xlsx
Description: MS-Excel 2007 spreadsheet


Composite_Macro.xlsb
Description: application/vnd.ms-excel.sheet.binary.macroenabled.12


Re: Fwd: $$Excel-Macros$$ Macro for Copy Paste

2017-01-05 Thread Paul Schreiner
Shrinivas:
I wrote a macro that created from 1 to 5 files in 25 folders for a total of 73 
files.I put values in cells A2 through E10.
In your original email, you said you wanted the values from cells E3, F5, E8 
and E9but in your sample, you used E5.
I'm sure you can figure out how to modify the code to do whatever you want.The 
following macro assumes that the workbook with this macro resides in the 
"parent" folder of the folders containing the data files.
It will look in all FIRST LEVEL sub-folders (regardless of name) and open all 
Excel files in the folder.That is to say, if there are subfolders like 
AA/1/sampleonly files in the /AA/ level will be opened.and only the information 
on the first sheet is retrieved.
The macro reported the values from the 73 test files in 9-10 seconds.
let me know if you need additional explanation.
Option Explicit
Sub ReadAllFiles()
    Dim fso, fldr, ext
    Dim sFldr, File
    Dim wb As Workbook
    Dim nRow
    Dim tstart, tstop, TElapsed, TMin, TSec, msg
    
    tstart = Timer
    
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set fldr = fso.getfolder(ThisWorkbook.Path)
    
    ThisWorkbook.Sheets(1).Range("A2:Z65000").ClearContents
    nRow = 1
    Application.ScreenUpdating = False
    
    For Each sFldr In fldr.subfolders
    For Each File In sFldr.Files
    ext = fso.getextensionname(File.Path)
    If (UCase(Left(ext, 3)) = "XLS") Then
    Set wb = Workbooks.Open(File)
    nRow = nRow + 1
    ThisWorkbook.Sheets(1).Cells(nRow, "A").Value = File.Name
    ThisWorkbook.Sheets(1).Cells(nRow, "B").Value = 
wb.Sheets(1).Range("E3").Value
    ThisWorkbook.Sheets(1).Cells(nRow, "C").Value = 
wb.Sheets(1).Range("F5").Value
    ThisWorkbook.Sheets(1).Cells(nRow, "D").Value = 
wb.Sheets(1).Range("E8").Value
    ThisWorkbook.Sheets(1).Cells(nRow, "E").Value = 
wb.Sheets(1).Range("E9").Value
    wb.Close savechanges:=False
    End If
    Next File
    Next sFldr
    Application.ScreenUpdating = True
    
'xxx
    msg = "Processed " & nRow - 1 & " files in:"
    tstop = Timer
    TMin = 0
    TElapsed = tstop - tstart
    TMin = TElapsed \ 60
    TSec = TElapsed Mod 60
    msg = msg & Chr(13) & Chr(13)
    If (TMin > 0) Then msg = msg & TMin & " mins "
    msg = msg & TSec & " sec"
    MsgBox msg
    
'xxx
End Sub


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
- 

On Thursday, January 5, 2017 4:32 AM, Shrinivas Shevde 
 wrote:
 

 Dear Paul Thanks for replyPlease find detila you asked forThere will be 
seperate summary sheet which contain folowingPlease find attached sheetThanks 
once again  for great Help
RegardsShrinivas






On Wed, Jan 4, 2017 at 7:52 PM, Paul Schreiner  wrote:

This can be easily done.I recently created a "Combined Summary" report that 
opened over 500 files in subfolders and copied 160 columns of data from a 
variable number of rows on the "Summary" sheet of each workbook to the 
"combined" workbook.Resulting in over 2700 rows of data.Since the files weren't 
large, it took slightly over 5 minutes to run.

It should be simple to do what you want, but how do you want the final report 
to look?The values in cells E3,F5,E8,E9 from the file in folder AA should 
appear... where?The values in cells E3,F5,E8,E9 from the file in folder BB 
should appear... where? on the same sheet?
Can you send me a couple of samples of what the files look like and what you 
want the summary sheet 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
-- --- 

On Wednesday, January 4, 2017 1:16 AM, Shrinivas Shevde 
 wrote:
 

 Dear FriendsWaiting for reply
-- Forwarded message --
From: Shrinivas Shevde 
Date: Tue, Jan 3, 2017 at 4:55 PM
Subject: $$Excel-Macros$$ Macro for Copy Paste
To: excel-macros@googlegroups.com


Dear AllI want a macro for following can Anyone help me.
I have a folder ,which contain many folder,In ea

$$Excel-Macros$$ Read from Google Calendar

2017-01-04 Thread Paul Schreiner
My Google calendar displays multiple calendars.
I'm trying to write a VBA macro to read from the Google calendars and 
create a "composite" calendar in Excel that highlights 
conflicting/overlapping schedules, and more.

The first step is to read from the Google calendar and write the event 
information to Excel.

Any idea how to approach this with VBA?
(Yes, I've Googled it and have not had any luck)

thank you for your attention.

Paul

-- 
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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: Fwd: $$Excel-Macros$$ Macro for Copy Paste

2017-01-04 Thread Paul Schreiner
This can be easily done.I recently created a "Combined Summary" report that 
opened over 500 files in subfolders and copied 160 columns of data from a 
variable number of rows on the "Summary" sheet of each workbook to the 
"combined" workbook.Resulting in over 2700 rows of data.Since the files weren't 
large, it took slightly over 5 minutes to run.

It should be simple to do what you want, but how do you want the final report 
to look?The values in cells E3,F5,E8,E9 from the file in folder AA should 
appear... where?The values in cells E3,F5,E8,E9 from the file in folder BB 
should appear... where? on the same sheet?
Can you send me a couple of samples of what the files look like and what you 
want the summary sheet 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
- 

On Wednesday, January 4, 2017 1:16 AM, Shrinivas Shevde 
 wrote:
 

 Dear FriendsWaiting for reply
-- Forwarded message --
From: Shrinivas Shevde 
Date: Tue, Jan 3, 2017 at 4:55 PM
Subject: $$Excel-Macros$$ Macro for Copy Paste
To: excel-macros@googlegroups.com


Dear AllI want a macro for following can Anyone help me.
I have a folder ,which contain many folder,In each folder there are excel 
file(File having single sheet) .I want to copy E3,F5,E8,E9 from each file and 
paste in one excel sheet.For egSuppose main folder name is "complete"In this 
folder there are folder,AA,BB,CC and so onIn each folder there areExcel file 
may be 1,2,3I want to copy the data from each file  from cell( E3,F5,E8,E9 ) 
and want to paste in one excel sheet.

-- 
Shrini-- 
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+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://groups.google.com/d/ optout.



-- 
Shrini-- 
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 https://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  :

Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide

2016-12-15 Thread Paul Schreiner
Look at the "Thisworkbook" module in the VB Editor.
Notice that in the Hide...xlsm workbook, this module has the Workbook_Open 
event macro?
Your testing.xlsm workbook doesn't have this.
I noticed that you've added an Auto_Open macro.this is also an option.You could 
simply add  a call to HideAllSheets to this macro before the Msgbox line. 
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
- 

On Thursday, December 15, 2016 7:43 AM, Vijayendra Rao 
 wrote:
 

 Dear Paul,
I am facing one issue here, I try to use the macros to my other file by using 
you have provided macros. It is not hide when I open second time. I am not sure 
where I made a mistake or do I need to change any settings. Can you please help 
on the same.
Attached are the both the files. "Hide & unhilde - 2nd page" is the macro 
provided by you and "TESTING - 001" is my file.
Regards,Vijayendra

2016-12-13 18:24 GMT+05:30 Vijayendra Rao :

Thanks Paul for your help, it is working fine. You saved my lot of time.
Thank you again.
Regards,Vijayendra
2016-12-13 17:41 GMT+05:30 Paul Schreiner :

I'd suggest changing the HideAllSheets macro to first display the "read" sheet 
(what you called "guidelines"?)then hide everything EXCEPT the "read" sheet.
Like:
Sub HideAllSheets()
    Dim wsSheet As Worksheet
    Sheets("read").Visible = True
    For Each wsSheet In ActiveWorkbook.Worksheets
    If wsSheet.Name <> "read" Then
    wsSheet.Visible = xlSheetHidden
    End If
    Next wsSheet
End Sub
 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
-- --- 

On Tuesday, December 13, 2016 1:45 AM, karleenbiggs via MS EXCEL AND VBA 
MACROS  wrote:
 

 
-- --
On Tue, 12/13/16, ileanakeating via MS EXCEL AND VBA MACROS 
 wrote:

 Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide
 To: excel-macros@googlegroups.com
 Date: Tuesday, December 13, 2016, 8:27 AM
 
 
 -- --
 On Tue, 12/13/16, Vijayendra Rao 
 wrote:
 
  Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide
  To: excel-macros@googlegroups.com
  Date: Tuesday, December 13, 2016, 3:50 AM
  
  Thanks Paul for quick
  help, it fulfilled my most of the requirement. One last
  favor, Now while opening last saved sheet only visible and
  guidelines sheet is hide , is it possible to view only
 first
  sheet (sheet name read) of the file.
  Regards,Vijayendra
  2016-12-12 18:52
  GMT+05:30 Paul Schreiner :
  There's
  nothing that is "automatic".
  Attached
  uses a Workbook_open event macro to hide the sheets when
  you OPEN the document.
  That way, it doesn't matter whether the
  sheets are visible or not when the file is saved, but
  it will hide the sheets when it's opened.
  
  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
  --
  ---
  
  
   
    On Monday, December 12, 2016 7:50 AM,
  karleenbiggs via MS EXCEL AND VBA MACROS  wrote:
    
  
   
  -- --
  On Mon, 12/12/16, Vijayendra Rao 
  wrote:
  
   Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and
 Unhide
   To: excel-macros@googlegroups.com
   Date: Monday, December 12, 2016, 2:43 PM
   
   Thanks Paul for quick
   guidance.
   This file is used by many people and they are
   working without reading few guidelines from first
 sheet.
   There may be chances of not using the sheet_hide
 macro
   option by other user. Is there any macros which
   automatically hide those sheets when close the file.
   Attached is the my workbook.
   Regards,Vijayendra
   2016-12-12 17:46
   GMT+05:30 Paul Schreiner :
   Just
   as you created a macro to "unhide" the sheets,
  you
   need to create a macro to hide them.
   Additionally,
   you can create a BeforeSave event to check to see if
 the
   sheets are displayed.Then
   execute your "Sheets_Hide" macro to hide the
   sheets before saving (that
   way the sheets are always hidden before saving the
   file)
   Note:
   Using a macro, you can use .Visible =
 xlVeryHiddenwhich
  will hide the sheets and they will not show
   up when trying to manually unhide the sheets!
   Paul-- --

Re: $$Excel-Macros$$ Combine two macros in to one

2016-12-14 Thread Paul Schreiner
Your buttons call two separate macros.Print_OptionandSUPPRESS_ROWS
to combine the two, simply have the Print_Option macro "call" the SUPPRESS_ROWS 
macro, like:
Sub Print_option()
    SUPRESS_ROWS
    Application.Dialogs(xlDialogPrint).Show
End Sub
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
- 

On Wednesday, December 14, 2016 2:40 AM, Vijayendra Rao 
 wrote:
 

 Dear Experts,
I have created two macros, one is for suppress zero rows and another print 
option. Currently I need to run first suppress zero rows and  later print 
macros. Is it possible to combine both the macros. By running print option, 
rows should be suppress and later need to show print dialogue option.
Attached is the file which is I have created the macros. Request you to help on 
the same. Regards,
Vijayendra
94491 67631-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Average of Columns while excluding certain columns

2016-12-13 Thread Paul Schreiner
Could I get a copy of the sheet?What do you base "current" year on, the year of 
"today's" date?(rather than a fiscal year or other criteria)
There are several options.But I'd rather not try to recreate your data, only to 
find out my creation doesn't match yours! 
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
- 

On Tuesday, December 13, 2016 11:06 AM, Joseph Carney 
 wrote:
 

 

Hello all , 
I have a conundrum.  I have a table that i am using to collate data from 
previous years sales.  The data is from 2008 thru current year.  I have the 
table set up as follows:Month | 2008 | 2009 | 2009 | 2010 | 2011 | 2012 | 2013 
| 2014 | 2015 | 2016 | 2017 | 5year Average
Under each of the headings, I have a numeric value sorted by month.  What I 
would like to be able to do is to average the PREVIOUS 5 years sales while 
ignoring the current year.  Is there a way/formula that I can set up that would 
give me the previous 5 year average without having to manually adjust the 
formula?
Thank you for your kind assistance,
Joe-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide

2016-12-13 Thread Paul Schreiner
I'd suggest changing the HideAllSheets macro to first display the "read" sheet 
(what you called "guidelines"?)then hide everything EXCEPT the "read" sheet.
Like:
Sub HideAllSheets()
    Dim wsSheet As Worksheet
    Sheets("read").Visible = True
    For Each wsSheet In ActiveWorkbook.Worksheets
    If wsSheet.Name <> "read" Then
    wsSheet.Visible = xlSheetHidden
    End If
    Next wsSheet
End Sub
 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
- 

On Tuesday, December 13, 2016 1:45 AM, karleenbiggs via MS EXCEL AND VBA 
MACROS  wrote:
 

 

On Tue, 12/13/16, ileanakeating via MS EXCEL AND VBA MACROS 
 wrote:

 Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide
 To: excel-macros@googlegroups.com
 Date: Tuesday, December 13, 2016, 8:27 AM
 
 
 
 On Tue, 12/13/16, Vijayendra Rao 
 wrote:
 
  Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide
  To: excel-macros@googlegroups.com
  Date: Tuesday, December 13, 2016, 3:50 AM
  
  Thanks Paul for quick
  help, it fulfilled my most of the requirement. One last
  favor, Now while opening last saved sheet only visible and
  guidelines sheet is hide , is it possible to view only
 first
  sheet (sheet name read) of the file.
  Regards,Vijayendra
  2016-12-12 18:52
  GMT+05:30 Paul Schreiner :
  There's
  nothing that is "automatic".
  Attached
  uses a Workbook_open event macro to hide the sheets when
  you OPEN the document.
  That way, it doesn't matter whether the
  sheets are visible or not when the file is saved, but
  it will hide the sheets when it's opened.
  
  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
  --
  ---
  
  
   
    On Monday, December 12, 2016 7:50 AM,
  karleenbiggs via MS EXCEL AND VBA MACROS  wrote:
    
  
   
  -- --
  On Mon, 12/12/16, Vijayendra Rao 
  wrote:
  
   Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and
 Unhide
   To: excel-macros@googlegroups.com
   Date: Monday, December 12, 2016, 2:43 PM
   
   Thanks Paul for quick
   guidance.
   This file is used by many people and they are
   working without reading few guidelines from first
 sheet.
   There may be chances of not using the sheet_hide
 macro
   option by other user. Is there any macros which
   automatically hide those sheets when close the file.
   Attached is the my workbook.
   Regards,Vijayendra
   2016-12-12 17:46
   GMT+05:30 Paul Schreiner :
   Just
   as you created a macro to "unhide" the sheets,
  you
   need to create a macro to hide them.
   Additionally,
   you can create a BeforeSave event to check to see if
 the
   sheets are displayed.Then
   execute your "Sheets_Hide" macro to hide the
   sheets before saving (that
   way the sheets are always hidden before saving the
   file)
   Note:
   Using a macro, you can use .Visible =
 xlVeryHiddenwhich
  will hide the sheets and they will not show
   up when trying to manually unhide the sheets!
   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
   --
   --- 
   
    
     On Monday, December 12, 2016 7:04 AM, Vijayendra
   Rao 
   wrote:
     
   
    Hi Experts,
   I have created one excel file and except one
   sheet all sheets are hided. I have added shape button
 in
   first sheet to unhide all the sheets with the help
 of
  macro.
   When i worked and saved all sheets will be visible
 when I
   opened again. Is it possible to remain hide those
 sheets
   after saving the file.
   Request you to help on the same.-- 
    
   
   Regards,
   Vijayendra
   94491 67631
   
   
   
   
   -- 
   
   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.
   

Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide

2016-12-12 Thread Paul Schreiner
There's nothing that is "automatic".
Attached uses a Workbook_open event macro to hide the sheets when you OPEN the 
document.
That way, it doesn't matter whether the sheets are visible or not when the file 
is saved, but it will hide the sheets when it's opened.

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
- 

On Monday, December 12, 2016 7:50 AM, karleenbiggs via MS EXCEL AND VBA 
MACROS  wrote:
 

 

On Mon, 12/12/16, Vijayendra Rao  wrote:

 Subject: Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide
 To: excel-macros@googlegroups.com
 Date: Monday, December 12, 2016, 2:43 PM
 
 Thanks Paul for quick
 guidance.
 This file is used by many people and they are
 working without reading few guidelines from first sheet.
 There may be chances of not using the sheet_hide macro
 option by other user. Is there any macros which
 automatically hide those sheets when close the file.
 Attached is the my workbook.
 Regards,Vijayendra
 2016-12-12 17:46
 GMT+05:30 Paul Schreiner :
 Just
 as you created a macro to "unhide" the sheets, you
 need to create a macro to hide them.
 Additionally,
 you can create a BeforeSave event to check to see if the
 sheets are displayed.Then
 execute your "Sheets_Hide" macro to hide the
 sheets before saving (that
 way the sheets are always hidden before saving the
 file)
 Note:
 Using a macro, you can use .Visible = xlVeryHiddenwhich will hide the sheets 
and they will not show
 up when trying to manually unhide the sheets!
 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
 --
 --- 
 
  
  On Monday, December 12, 2016 7:04 AM, Vijayendra
 Rao 
 wrote:
  
 
  Hi Experts,
 I have created one excel file and except one
 sheet all sheets are hided. I have added shape button in
 first sheet to unhide all the sheets with the help of macro.
 When i worked and saved all sheets will be visible when I
 opened again. Is it possible to remain hide those sheets
 after saving the file.
 Request you to help on the same.-- 
  
 
 Regards,
 Vijayendra
 94491 67631
 
 
 
 
 -- 
 
 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+unsubscribe@
 googlegroups.com.
 
 To post to this group, send email to excel-macros@googlegroups.com.
 
 Visit this group at https://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 a

Re: $$Excel-Macros$$ Excel Sheet Hide and Unhide

2016-12-12 Thread Paul Schreiner
Just as you created a macro to "unhide" the sheets, you need to create a macro 
to hide them.
Additionally, you can create a BeforeSave event to check to see if the sheets 
are displayed.Then execute your "Sheets_Hide" macro to hide the sheets before 
saving (that way the sheets are always hidden before saving the file)
Note: Using a macro, you can use .Visible = xlVeryHiddenwhich will hide the 
sheets and they will not show up when trying to manually unhide the sheets!
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
- 

On Monday, December 12, 2016 7:04 AM, Vijayendra Rao 
 wrote:
 

 Hi Experts,
I have created one excel file and except one sheet all sheets are hided. I have 
added shape button in first sheet to unhide all the sheets with the help of 
macro. When i worked and saved all sheets will be visible when I opened again. 
Is it possible to remain hide those sheets after saving the file.
Request you to help on the same.-- 
 
Regards,
Vijayendra
94491 67631-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ how to remove password

2016-12-05 Thread Paul Schreiner
There are services you can obtain (try Googling "excel password recovery")but 
the rules of this forum include:
 3) Don't post questions regarding breaking or bypassing any security 
measure.
(I think the list owners don't want the liability associated with assisting 
someone to bypass the protection on copyrighted material)
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
- 

On Friday, December 2, 2016 8:54 PM, Izhar  wrote:
 

 I want to unhide the sheets in the attach workbook when I do this a message 
pop up as shown below unable to set the visible property of the worksheet 
classI know it is protected sheets but i dont remeber the password, is there 
any software or macro which can do this.Thanks


-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need support

2016-12-01 Thread Paul Schreiner
What do you mean by "not working properly"?
I opened your file and compared the values to the expected values and it seems 
to be working as expected. 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
- 

On Thursday, December 1, 2016 1:05 AM, Murali Nagarajan 
 wrote:
 

 Dear team,
Below mentioned formula is not working properly.how to use the formula 
=VLOOKUPNTH($E2,$A$2:$C$209,3,10)Note: File has been attached
regards
N.Murali-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   7   8   9   10   >