Re: $$Excel-Macros$$ please help for consolidate in excel

2014-04-27 Thread Ganesh N
Hi Yadav,

you can also use this. Just put the data files in separate folder and put
the path in cell J2.

Thanks  Regards,
Ganesh N


On Sun, Apr 27, 2014 at 11:16 AM, Vaibhav Joshi v...@vabs.in wrote:

 Hi,

 You can try this excellent codes share by Ashish earlier this month:

 Sub merge()

 Dim fld As Object, fil As Object, fso As Object, fldpath
 With Application.FileDialog(msoFileDialogFolderPicker)
 .Title = Choose the folder
 .Show
 End With
 On Error Resume Next
 fldpath = 
 Application.FileDialog(msoFileDialogFolderPicker).SelectedItems(1)
  \
 If fldpath = False Then
 MsgBox Folder Not Selected
 Exit Sub
 End If

 Set fso = CreateObject(scripting.filesystemobject)
 Set fld = fso.getfolder(fldpath)
 Application.DisplayAlerts = False
 Application.ScreenUpdating = False
 For Each fil In fld.Files
 If Right(fil.Name, 4) = .xls And fil.Name  ThisWorkbook.Name
 Then Call import_data(fil.Path)
 Next
 Application.DisplayAlerts = True
 Application.ScreenUpdating = True

 End Sub



 Sub import_data(filename As String)
 Dim wkb As Workbook
 Dim lastrow As Long
 lastrow = ThisWorkbook.Sheets(Sheet1).Range(a65356).End(xlUp).Row
 + 1
 Set wkb = Workbooks.Open(filename)
 wkb.Sheets(Summary Sheet).Range(e2:j2).Copy
 Destination:=ThisWorkbook.Sheets(Sheet1).Range(a  lastrow)
 wkb.Sheets(Summary Sheet).Range(b13:f13).Copy
 Destination:=ThisWorkbook.Sheets(Sheet1).Range(g  lastrow)
 wkb.Close

 End Sub

 Thanks


 On Sun, Apr 27, 2014 at 9:44 AM, Jitendra Yadav jitendr...@gmail.comwrote:

 Hi All,

 I have some data for date wise but I want all excel file in one sheet
 through macro.



 Example.




 Regards,
 Jitendra//9650449202

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

 FORUM RULES

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

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


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

 FORUM RULES

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

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


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

Re: $$Excel-Macros$$ Need a code to update the non existing data

2014-04-27 Thread Ganesh N
Hi Ravinder sir,

The Prj code mostly will repeat (week on week the Prj code will be same
only date and value will change) . So I need to check the date and
respective prj code so it wont be duplicate. If I already updated for
current week I need a msg else it should update. Can you please help me on
that ?

Thanks  Regards,
Ganesh N


On Sun, Apr 27, 2014 at 11:20 AM, ravinder negi ravindervbacli...@gmail.com
 wrote:

 hi, please visit below link for your solution, please advise if anything
 else required.

 http://excelvbasupport.com/forum/showthread.php?tid=15

 Note I have checked only code number.


 On Sat, Apr 26, 2014 at 7:20 PM, Ganesh N ganeshg...@gmail.com wrote:

 Hi Team,

 I need to update the data in second sheet. before that i want to check
 the data is already updated or not if already updated i need a msg else the
 data needs to be update (I want to check the date and prj code, becoz week
 on week prj and date will change. so i dont want to make a duplicate ). I
 wrote coding for update the data. I need a code to check the condition.
 Kindly help me on that.

 Please find the attachment for your reference.

 Thanks  Regards,
 Ganesh N

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

 FORUM RULES

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

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


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

 FORUM RULES

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

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


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

FORUM RULES

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

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


Re: $$Excel-Macros$$ please help for consolidate in excel

2014-04-27 Thread ravinder negi
Please see below link for your query.. u just need to select folder where u
have saved the files. please dont save example file in data files folder
http://excelvbasupport.com/forum/showthread.php?tid=17



On Sat, Apr 26, 2014 at 11:18 PM, Ganesh N ganeshg...@gmail.com wrote:

 Hi Yadav,

 you can also use this. Just put the data files in separate folder and put
 the path in cell J2.

 Thanks  Regards,
 Ganesh N


 On Sun, Apr 27, 2014 at 11:16 AM, Vaibhav Joshi v...@vabs.in wrote:

 Hi,

 You can try this excellent codes share by Ashish earlier this month:

 Sub merge()

 Dim fld As Object, fil As Object, fso As Object, fldpath
 With Application.FileDialog(msoFileDialogFolderPicker)
 .Title = Choose the folder
 .Show
 End With
 On Error Resume Next
 fldpath = 
 Application.FileDialog(msoFileDialogFolderPicker).SelectedItems(1)
  \
 If fldpath = False Then
 MsgBox Folder Not Selected
 Exit Sub
 End If

 Set fso = CreateObject(scripting.filesystemobject)
 Set fld = fso.getfolder(fldpath)
 Application.DisplayAlerts = False
 Application.ScreenUpdating = False
 For Each fil In fld.Files
 If Right(fil.Name, 4) = .xls And fil.Name  ThisWorkbook.Name
 Then Call import_data(fil.Path)
 Next
 Application.DisplayAlerts = True
 Application.ScreenUpdating = True

 End Sub



 Sub import_data(filename As String)
 Dim wkb As Workbook
 Dim lastrow As Long
 lastrow = ThisWorkbook.Sheets(Sheet1).Range(a65356).End(xlUp).Row
 + 1
 Set wkb = Workbooks.Open(filename)
 wkb.Sheets(Summary Sheet).Range(e2:j2).Copy
 Destination:=ThisWorkbook.Sheets(Sheet1).Range(a  lastrow)
 wkb.Sheets(Summary Sheet).Range(b13:f13).Copy
 Destination:=ThisWorkbook.Sheets(Sheet1).Range(g  lastrow)
 wkb.Close

 End Sub

 Thanks


 On Sun, Apr 27, 2014 at 9:44 AM, Jitendra Yadav jitendr...@gmail.comwrote:

 Hi All,

 I have some data for date wise but I want all excel file in one sheet
 through macro.



 Example.




 Regards,
 Jitendra//9650449202

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

 FORUM RULES

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

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


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

 FORUM RULES

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

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


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

Re: $$Excel-Macros$$ Need a code to update the non existing data

2014-04-27 Thread Vaibhav Joshi
Hi

Use this code instead, this is simple  easy:

Sub dataupdate()
Range(A2).Select
Range(ActiveCell.End(xlDown), Selection.End(xlToRight)).Select
Selection.Copy
Worksheets(Data update).Select
Range(A100).End(xlUp).Offset(1, 0).Select
ActiveCell.PasteSpecial
Application.CutCopyMode = False
ActiveSheet.Range(A:D).RemoveDuplicates Columns:=Array(1, 2, 3, 4), _
Header:=xlYes
Worksheets(To be update).Select

End Sub

Cheers!!


On Sun, Apr 27, 2014 at 12:00 PM, Ganesh N ganeshg...@gmail.com wrote:

 Hi Ravinder sir,

 The Prj code mostly will repeat (week on week the Prj code will be same
 only date and value will change) . So I need to check the date and
 respective prj code so it wont be duplicate. If I already updated for
 current week I need a msg else it should update. Can you please help me on
 that ?

 Thanks  Regards,
 Ganesh N


 On Sun, Apr 27, 2014 at 11:20 AM, ravinder negi 
 ravindervbacli...@gmail.com wrote:

 hi, please visit below link for your solution, please advise if anything
 else required.

 http://excelvbasupport.com/forum/showthread.php?tid=15

 Note I have checked only code number.


 On Sat, Apr 26, 2014 at 7:20 PM, Ganesh N ganeshg...@gmail.com wrote:

 Hi Team,

 I need to update the data in second sheet. before that i want to check
 the data is already updated or not if already updated i need a msg else the
 data needs to be update (I want to check the date and prj code, becoz week
 on week prj and date will change. so i dont want to make a duplicate ). I
 wrote coding for update the data. I need a code to check the condition.
 Kindly help me on that.

 Please find the attachment for your reference.

 Thanks  Regards,
 Ganesh N

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

 FORUM RULES

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

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


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

 FORUM RULES

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

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


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

Re: $$Excel-Macros$$ Need a code to update the non existing data

2014-04-27 Thread Ganesh N
Thanks Vaibhav!!!


On Sun, Apr 27, 2014 at 3:07 PM, Vaibhav Joshi v...@vabs.in wrote:

 Here goes file as per your need..

 Cheers!!


 On Sun, Apr 27, 2014 at 12:59 PM, Vaibhav Joshi v...@vabs.in wrote:

 Hi

 Use this code instead, this is simple  easy:

 Sub dataupdate()
 Range(A2).Select
 Range(ActiveCell.End(xlDown), Selection.End(xlToRight)).Select
 Selection.Copy
 Worksheets(Data update).Select
 Range(A100).End(xlUp).Offset(1, 0).Select
 ActiveCell.PasteSpecial
 Application.CutCopyMode = False
 ActiveSheet.Range(A:D).RemoveDuplicates Columns:=Array(1, 2, 3, 4), _
 Header:=xlYes
 Worksheets(To be update).Select

 End Sub

 Cheers!!


 On Sun, Apr 27, 2014 at 12:00 PM, Ganesh N ganeshg...@gmail.com wrote:

 Hi Ravinder sir,

 The Prj code mostly will repeat (week on week the Prj code will be same
 only date and value will change) . So I need to check the date and
 respective prj code so it wont be duplicate. If I already updated for
 current week I need a msg else it should update. Can you please help me on
 that ?

 Thanks  Regards,
 Ganesh N


 On Sun, Apr 27, 2014 at 11:20 AM, ravinder negi 
 ravindervbacli...@gmail.com wrote:

 hi, please visit below link for your solution, please advise if
 anything else required.

 http://excelvbasupport.com/forum/showthread.php?tid=15

 Note I have checked only code number.


 On Sat, Apr 26, 2014 at 7:20 PM, Ganesh N ganeshg...@gmail.com wrote:

 Hi Team,

 I need to update the data in second sheet. before that i want to check
 the data is already updated or not if already updated i need a msg else 
 the
 data needs to be update (I want to check the date and prj code, becoz week
 on week prj and date will change. so i dont want to make a duplicate ). I
 wrote coding for update the data. I need a code to check the condition.
 Kindly help me on that.

 Please find the attachment for your reference.

 Thanks  Regards,
 Ganesh N

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

 FORUM RULES

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

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


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

 FORUM RULES

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

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


  --
 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$$ Run time error - Type mismatch

2014-04-27 Thread Sam Mathai Chacko
Ondrej, for that you'll have to enable programmatic access to VBA. Just
search the internet how to do that, or post back. Someone will help you.

Regards,
Sam Mathai Chacko
On Apr 27, 2014 7:49 PM, Ondrej o.pel...@gmail.com wrote:

 HI buddies
 there is an error in the last sequence of this code (bold), and I can not
 find the reason why
 please help

 Sub btn_vytvorit_Click()
 Dim ws As Worksheet
 Dim wsName As String, Name As String
 Dim MsgError As String
 Dim wsCopyFrom As Worksheet
 Set wsCopyFrom = Worksheets(vzorovy_zapis)
 Dim Msg As String
 Dim msgsmazat As String
 Dim riadky As Range
 Dim noveriadky As Range
 Dim leden As Range
 Set leden = Range(A17:AA62)




 MsgError = Zadaný list již existuje! Vyberte bunku s jiným kódem.
 Potvrďte End.

 'generate ws
 If ActiveCell.Column  2 Then
 MsgBox (Nemáte označený kód zaměstnance)
 Sheets(db_kontakty).Activate
 Else

 If Not IsEmpty(ActiveCell) Then
 Name = ActiveCell.Value
 Set ws = Worksheets.Add
 ws.Move after:=Sheets(Sheets.Count)
 'not to have two equal ws
 Dim wks As Worksheet
 For Each wks In ActiveWorkbook.Worksheets
 If wks.Name = Name Then
 MsgBox MsgError, vbOKOnly, Pozor
 On Error GoTo Chyba
 End If


 Next wks
 ws.Name = Name
 'copy data from source

 wsCopyFrom.Columns(A:AG).Copy
 ws.Range(A1:AG1000).PasteSpecial (xlPasteAll)
 ws.Range(S2).Value = ws.Name

 'end of creating ws+setup row heights

 Set riadky = wsCopyFrom.Range(A1:AG1000)
 Set noveriadky = ws.Range(A1:AG1000)
 With riadky
 For r = 1 To .Rows.Count
 noveriadky.Rows(r).RowHeight = .Rows(r).RowHeight
 Next r
 End With


 Msg = Vložte údaje
 MsgBox (Msg)

 Chyba:
 Sheets(db_kontakty).Activate




 End If
 End If

 Dim i As Integer
 Dim SrcCmod As VBIDE.CodeModule
 Dim DstCmod As VBIDE.CodeModule


 * Set SrcCmod =
 ActiveWorkbook.VBProject.VBComponents(wsCopyFrom).CodeModule*

 Set DstCmod = ActiveWorkbook.VBProject.VBComponents(ws).CodeModule

 For i = 1 To SrcCmod.CountOfLines

 DstCmod.InsertLines i, SrcCmod.Lines(i, 1)
 Next i


 End Sub

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

 FORUM RULES

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

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


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

FORUM RULES

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

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


$$Excel-Macros$$ Loop through

2014-04-27 Thread Rupesh Patil
Hello Expert,
Good Morning

I need your help,
I am not able to determine how to loop through only till last used row and
column, sample file is attachment, Please go through it and help me out.



-- 
Thanks and Regards, Rp.

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

FORUM RULES

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

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


loop_sample.xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12


$$Excel-Macros$$ regarding getpivot data

2014-04-27 Thread ashish saini
Dear friends

can any one explain the use of getpivot data... i have excel 2010 and it
seems much advanced formulas and all so if any one have working with
examples of such new formula pls suggest me or guide me...

thanks to all


ashish

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

FORUM RULES

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

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


Re: $$Excel-Macros$$ Loop through

2014-04-27 Thread Pramod Singh
Hi Rupesh,

Please find the attached file. as per ur requirement.

Regards/Pramod



On Mon, Apr 28, 2014 at 10:03 AM, Rupesh Patil
patil.rupesh1...@gmail.comwrote:

 Hello Expert,
 Good Morning

 I need your help,
 I am not able to determine how to loop through only till last used row and
 column, sample file is attachment, Please go through it and help me out.



 --
 Thanks and Regards, Rp.

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

 FORUM RULES

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

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




-- 
*PramodSingh*

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

FORUM RULES

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

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


loop_sample.xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12


Re: $$Excel-Macros$$ Loop through

2014-04-27 Thread Rupesh Patil
Dear Pramod,

Thanks you very very much.


On Mon, Apr 28, 2014 at 11:19 AM, Pramod Singh pramod...@gmail.com wrote:

 Hi Rupesh,

 Please find the attached file. as per ur requirement.

 Regards/Pramod



 On Mon, Apr 28, 2014 at 10:03 AM, Rupesh Patil patil.rupesh1...@gmail.com
  wrote:

 Hello Expert,
 Good Morning

 I need your help,
 I am not able to determine how to loop through only till last used row
 and column, sample file is attachment, Please go through it and help me
 out.



 --
 Thanks and Regards, Rp.

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

 FORUM RULES

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

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




 --
 *PramodSingh*

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

 FORUM RULES

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

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




-- 
Thanks and Regards, Rp.

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

FORUM RULES

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

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