+ Reply to Thread
Results 1 to 57 of 57

URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

  1. #1
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Question URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Hi Im looking for a Moacro, And also new to Macro..!!! ;(

    I just want to caopy a data from a specific cell of sheet (Data) and need to paste the data in to a another sheet(CW_single...)in a specific cell.

    Could you please help me here ??

    I have atatched the sheets, It may give you a clear view.

    Just want to fill the form (Cw single..) D5 should be filled with C2 of data.
    and D7 should be filled up with d2 of data, As it contines with the 5 details i have given in the data sheet.

    Any help on this will be much apprreciated.

    Thanks In advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    So in reality, these are 2 separate files itself right? Or 2 sheets in the same file?

    If they are 2 separate workbooks, will the destination file be open at the time of running the macro or should the macro open it, copy the contents and then save and close it?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Thanks For your quick Come back..!!

    Yes, These are two separate files and it should always be OPEN.

    Thanks isn advance..!!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    CW single has 1 form in it, while the data tab has multiple rows. So should the 1st sheet be copied for each row of data and then the data input?

  5. #5
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Yes, Obviously...

    Row values should be copied into ther..

    Thanks,
    Safi

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    No, you are not understanding my question. I will rephrase - do you need separate sheets to be created? 1 for each row of data?

  7. #7
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Sorry Yes, But the form will be in the format of CW single

    Thanks,
    Safi.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Ok, can you quickly tell me which cell from the data sheet should go to which cell in the CW_Single file?

  9. #9
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    B2 of DATA needs to go B22 in CW single..
    C2 of DATA needs to go D5 of CW single..
    D2 of DATA needs to go D7 of CW single
    F2 of DATA needs to go C30 of CW single..
    G2 of DATA needs to go G27 of Cw single

    Thanks,
    Safi..

  10. #10
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Arlu,

    IS taht everything you have to derive ?

    Or you need anything more ?

    cause, After 11 i'm unable to see this page, As i'm going out

    Thansk in advance.
    Safi.

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

  12. #12
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Hi Arlu,

    Sorry, Was unable to check it soon.

    I have tried thsi one, But givces an Error : SUBSCRIPT OUT OF RANGE.

    Could you please advise ?

    Thanks,
    Safi.

  13. #13
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    A subscript out of range error occurs when the sheet name in the code does not match the sheet name in the file. Check that both match with regard to spelling and case and run the macro again.

  14. #14
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I have double checked both the file names were correct..!!

    But i don't know why thsi error occuring.

    Runtime error :9

    Please advise.

    Thanks,
    Safi.

  15. #15
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Which code line is highlighted?

  16. #16
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    With Workbooks("data.xlsx").Worksheets("Sheet1")

  17. #17
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Check that your workbook is named data.xlsx and its open at the time of running the macro.

  18. #18
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I have changed teh file name..!!

    But thing is that, After running the code, The data's(which i want to copy paste ) Are filled in teh workbook (data) itself, With creating a new sheet in the same workbook.

    I want to fill teh form,LIke in teh CW single.

    Needs to create a new work book in the format of CW single.

    Thanks,
    Safi.
    Last edited by safi0102; 01-28-2013 at 05:57 AM.

  19. #19
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Have you put the code in the CW single file or in the data file? The code needs to go to the CW Single file.

  20. #20
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Whoops, I have tried in that CW single, But its creating a new worksheets for each row. See the atatched.

    But i want to create a New workbooks in the same format.

    Can you have a look through please ?
    Attached Files Attached Files

  21. #21
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    You mean you want new workbooks having 1 sheet to be created for each row of data in the "data" file?

  22. #22
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Yes, You have got the point

    ANd also i have found an error al the infrmation on the subsheets in teh CW single are having the same value except teh NUmber.

    Thanks,
    Safi
    Last edited by safi0102; 01-28-2013 at 06:29 AM.

  23. #23
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Try this code
    Please Login or Register  to view this content.

  24. #24
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Arlu,
    I have tried this, Hope its working but thsing is that i have given teh path \\ad\wwc-ps-17\ps-17\Y129889\home\desktop\test

    But in the mentioned path there is no files

  25. #25
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I didnt get you.

  26. #26
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I have changed teh file saving path as : \\ad\wwc-ps-17\ps-17\Y129889\home\desktop\test..

    Because teh B drive is not avilable in my sytem.

    Thing is that in the given path there is no file found, After running the macro.

  27. #27
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Did you put it correctly as ?
    Please Login or Register  to view this content.

  28. #28
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I can able to get the files now in the mentioned path.

    But the files which are created are Excel 2007 but i'm were using the excel version of 2003, So im unable tro open the created excels.

  29. #29
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Oops. Ok, just change the .xlsx to .xls in the entire code.

  30. #30
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Its Awesome...!!!

    Working Good, One more thing you have to do..

    IM were using a macro for sending a mail for these created files.

    My Macro is below

    Whether i can able to include thsi ??

    [

    Please Login or Register  to view this content.
    ]
    Last edited by arlu1201; 01-28-2013 at 09:58 AM.

  31. #31
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.

  32. #32
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I have not tested it but try this
    Please Login or Register  to view this content.

  33. #33
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I have tried this one, But its sending only one sheet which has been created at last and also file Name also changed.

    I have Mad some changes in the code as below.

    Please Login or Register  to view this content.

  34. #34
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    I thought your email code was a working code. You will need to open each file from the folder and get it emailed. Will try and work it out for you.

  35. #35
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    What do you mean by filename has changed?

  36. #36
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Whoops, okay i'm waiting for your command..!!!

    I meant that you have wrote coding for the sheet name value of Range C, But while mailing using macro the file name changed into CW_Single...

    Thanks,
    Safi.

  37. #37
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Morning Arlu,

    Did you understood what i have tried to say ?

    Thanks,
    Safi.

  38. #38
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Yes. I have asked for a little help from some experts to sort out the mailing part. I have never worked on it, so am stuck. You should receive some help soon.

  39. #39
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Thanks Arlu..!!!

    Cheers,
    Safi.

  40. #40
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Arlu,

    You are my only hope, Please sort the belwo too.

    in teh CW single form B14 and B18 values i have amended teh code to fill teh details from other sheet.

    I want to fill one more cell Can you help me ?

    if B14 contains OPAL H14 will be 820 the same for B18.

    i have given the list of possible B14 and B18 values. Can you finish it too ?
    B14 & B18
    OPAL - 820
    BT - 001
    SKY - 822
    TELEWEST - 135
    NTL - 825


    Is that posible to be ?

    My recent code is:
    Please Login or Register  to view this content.
    Im Looking forward to hear from you.

    Many thanks,
    Safi.
    Last edited by safi0102; 01-29-2013 at 01:37 PM.

  41. #41
    Registered User
    Join Date
    10-04-2012
    Location
    US
    MS-Off Ver
    Word, Excel, Access all 2007 & 2010. Outlook 2010
    Posts
    56

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    #arlu1201

    I've seen your post at the water cooler and you may have stated it correctly. IF the code for email works then just move it up the code like what I have here and you will do the work on the file before it's closed.

    I've not tested this but it provides the help you've requested IF the code to email works as provided.

    Please Login or Register  to view this content.

  42. #42
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Thanks Carely,

    IT's workinmg fine..!!!

    Cheers,
    Safi.

  43. #43
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    So Safi,

    only the points in post 40 are pending, right? Everything else solved?

  44. #44
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Yes, Almost completed.

    I just want to save a file which are craeted.

    It should be save by creating the folder in the name file, If teh folder already exist just want to save.

    Something i'm expecting more

    Thanks,
    Safi.

  45. #45
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    The files are already being saved through this line of code -

    Please Login or Register  to view this content.

  46. #46
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    if B14 contains OPAL H14 will be 820 the same for B18.

    i have given the list of possible B14 and B18 values. Can you finish it too ?
    B14 & B18
    OPAL - 820
    BT - 001
    SKY - 822
    TELEWEST - 135
    NTL - 825
    H14 in the newly created files should be changed to the corresponding values you have given here?

  47. #47
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Yes, I can understand..

    I want to save the file in to a new folder which needs to created while macro running.

    If file name is : 0123456789
    a folder needs to be created for teh same and saved inside teh folder, if the folder already exist just want to save it.

    Yes, the corresponding values should be filled in the cell H14.



    Thanks,
    Safi.

  48. #48
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    So one folder for each file to be saved?

  49. #49
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Yes, You are right.. !! if teh folder already exist no need to create just need to save.

    Thanks,
    Safi.

  50. #50
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    After Noon Arlu,

    Did you manged to look on the posts after 40 ?

    Many thanks
    Safi.

  51. #51
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Actually your question has increased from one small task to such a big task . Ideally you should have opened a new thread for each new part.

    Nevertheless, try this updated code -
    Please Login or Register  to view this content.

  52. #52
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Sorry For taht..!!

    REally Awesome, Thats working fine now..!!!

    Tremendous job - Much Appreciated.

    Cheers,
    Safi.

  53. #53
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Am glad its working.

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

  54. #54
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Arlu,

    Unfortunately, i have tried to run the macro again.

    But it gives an error.

    Line Highlighted :MkDir ("\\ad\wwc-ps-17\ps-17\Y129889\home\desktop\test\" & sname & "\")
    Error Code :75
    i could not find what is teh issue is

    Can you please advise ?

    Thanks,
    Safi.
    Last edited by safi0102; 02-01-2013 at 09:22 AM.

  55. #55
    Registered User
    Join Date
    10-04-2012
    Location
    US
    MS-Off Ver
    Word, Excel, Access all 2007 & 2010. Outlook 2010
    Posts
    56

    Cool Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    safi...

    Doesn't a message show you the error number and reason? It is an "access" or security problem with the folder you are trying to create. Check with your system administrator to see that you have the needed permissions to add more folders. There are any number of things that it could be but the code is correct to be able to create what you need. Maybe there's a typo in the path or something? Try working with it a bit or even a different folder, I'm sure you can fix it.

    Cheers!
    K

  56. #56
    Forum Contributor
    Join Date
    01-25-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Morning Kcarley,

    I ahve tried in some other locations, but still teh issue presist.

    Its making the file and folder but the Mail does't sent.

    Plesea can you have an look on thsi please ?

    I reckon that the whatever the values in the row, its making the form but doesnt mailing.

    Coudl you help me now ?


    Many thansk,
    Safi.
    Last edited by safi0102; 02-04-2013 at 07:12 AM.

  57. #57
    Registered User
    Join Date
    10-04-2012
    Location
    US
    MS-Off Ver
    Word, Excel, Access all 2007 & 2010. Outlook 2010
    Posts
    56

    Thumbs up Re: URGENT ::Macro for copying a data from sheet1 and pate into another sheet in spc cell

    Are you using the code only as it is in post #51 ?
    You may need to add the part for emails back in but I haven't tested the email function itself nor would that be anything that I could do on my network.
    Try this with other locations; you may want to note the "email" section is labeled:

    Please Login or Register  to view this content.
    Also if something else comes up you may want to start a new Thread for the specific question.

    Happy CODING!!!
    K


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1