Hi all
Thank you every one for sharing your knowledge…..
I have small problem need Help
In source workbook
Sheet 1 (Status)
Sheet 2 (resource)
Sheet 3(Summary)
Sheet 4(Support)
Sheet 5 (Support_Details)
Sheet 6 (prime)
Sheet 7(Doc details)
Sheet 8 (New)
I have total 8 Worksheets in source workbook, I need only Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New)
Problem:
1 In Source Book Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New), find this sheet are available or not
2 If Sheet find, then run code; if not found sheet go to another work sheet and run code (In 8 Work sheet only this sheets Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New))
In this Sheets (Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New)) minimum one sheet available in Socurce Workbook
Sub GetFileCopyData ()
Dim Fname As String
Dim SrcWbk As Workbook (Source workbook)
Dim DestWbk As Workbook (This work book (vba code book))
Set DestWbk = ThisWorkbook
Fname = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls*), *.xls*", Title:="Select a File")
If Fname = "False" Then Exit Sub
Set SrcWbk = Workbooks.Open(Fname)
Sheets("Support ").Select
‘’’’’’’’’’’’’’’’’’’ My code’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
Sheets("prime ").Select
‘’’’’’’’’’’’’’’’’’’ My code’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
Sheets("New ").Select
‘’’’’’’’’’’’’’’’’’’ My code’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
Thank you every one for sharing your knowledge…..
I have small problem need Help
In source workbook
Sheet 1 (Status)
Sheet 2 (resource)
Sheet 3(Summary)
Sheet 4(Support)
Sheet 5 (Support_Details)
Sheet 6 (prime)
Sheet 7(Doc details)
Sheet 8 (New)
I have total 8 Worksheets in source workbook, I need only Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New)
Problem:
1 In Source Book Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New), find this sheet are available or not
2 If Sheet find, then run code; if not found sheet go to another work sheet and run code (In 8 Work sheet only this sheets Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New))
In this Sheets (Sheet 4(Support), Sheet 6 (prime) and Sheet 8 (New)) minimum one sheet available in Socurce Workbook
Sub GetFileCopyData ()
Dim Fname As String
Dim SrcWbk As Workbook (Source workbook)
Dim DestWbk As Workbook (This work book (vba code book))
Set DestWbk = ThisWorkbook
Fname = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls*), *.xls*", Title:="Select a File")
If Fname = "False" Then Exit Sub
Set SrcWbk = Workbooks.Open(Fname)
Sheets("Support ").Select
‘’’’’’’’’’’’’’’’’’’ My code’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
Sheets("prime ").Select
‘’’’’’’’’’’’’’’’’’’ My code’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
Sheets("New ").Select
‘’’’’’’’’’’’’’’’’’’ My code’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’