+ Reply to Thread
Results 1 to 8 of 8

Help me in fixing the error

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Help me in fixing the error

    I have the below script to copy a range of cells from usc.xls workbook survey details sheet to CSAT US&C Falcons.xlsm workbook in to Raw Data sheet.
    It is not working.
    Please help me in fixing it.

    Please Login or Register  to view this content.
    Thanks in advance...
    Last edited by kishoremcp; 04-26-2012 at 07:23 AM. Reason: Code tags not PHP tags.

  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: Help me in fixing the error

    Use this
    Please Login or Register  to view this content.
    If the workbooks are not open, you need a separate bit of code to open both workbooks. But if you put the file path into the code like how you did, it wont work.

    Let me know if you need the code to open the workbooks as well.
    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-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Help me in fixing the error

    Thank you for your help. It is working.

    If what if the workbook is not open. I mean the source file.

    I want to copy data from USC to CSAT US&C Falcons.xlsm

    Please help.

  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: Help me in fixing the error

    Then use this code
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Help me in fixing the error

    Thank you very much. It is working very good.
    The only thing is it is making the source file open at the end. It is not closing and I dont want to keep it open. I want to do it silently. Is it possible.
    I mean the from file usc.xls, i dont want it open at the end.

  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: Help me in fixing the error

    Put this line before the End sub.
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Help me in fixing the error

    Its working. Thank you very much. You are really helpful to me from the last 3 days.

  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: Help me in fixing the error

    Am glad it worked.

+ 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