Hello Ravi,

The code provided by you is coping a particular range instead it should
completely copy the sheet the way it is doing in the code provided by
ashish.If you can do that for me I can use your code .

*Function file_exists(fl_path As String) As Boolean*
*
*
*    If Dir(fl_path) <> "" And fl_path <> "" Then*
*        file_exists = True*
*    Else*
*        file_exists = False*
*    End If*
*End Function*
*    *
*
*
*Sub tests()*
*Dim finame As String*
*Dim wkb As Workbook*
*With Sheets("Feedback")*
*    finame = .Range("P1").Value & "\" & .Range("P2").Value & ".xlsx"*
*End With*
*
*
*If file_exists(finame) = False Then*
*    MsgBox "Create fil.,.."*
*    Exit Sub*
*End If*
*
*
*Set wkb = Workbooks.Open(finame)*
*ThisWorkbook.Sheets("Feedback").Copy After:=wkb.Sheets(Sheets.Count)*
*wkb.Save*
*wkb.Close*
*End Sub*


Rest all are working fine in the code.

Hello Ashish,

The code provided by you is working perfectly as per my requirement.
However, it is bit difficult for me to understand, since I am not a
regular/frequent  user of VBA.
With out understanding the code I cannot implement it because I my have to
come back to you again if any further changes are required in future.

I would also like to learn these codes, please provide me the appropriate
links or e-books if you have so that I can also learn the vba coding done
by you.
I appreciate both of your work and the forum.

Regards
Santosh
[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to