+ Reply to Thread
Results 1 to 10 of 10

vb6 code to copy cell value from one workbook to another and it should be dynamic

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    vb6 code to copy cell value from one workbook to another and it should be dynamic

    I want to make a interface in vb6 which deals with excel file. Where we can select drive from drive box and select a excel file which is a source file and copy the value of cell from the source file and paste it into destination file's cell. my problem is i want it dynamic mean i will take excel file, sheet and cell from user in runtime.

    > (this is the source excel file from where i want to copy the value of the cell)I m selecting excel file from filelistbox and then selecting a sheet from combobox where the sheets will b listed and then giving cell number from textbox and with d help of the command i show data that cell contains in a text box.

    >(this the destination file where i want to paste the cell value that i copied) again in same way i giving the destination file and sheet n cell . i want the code for a command button which will paste the value of copied cell to the destination cell. i tried many thing but nothing works.

    i made 2-3 function for copy cell but it doesnt work And i m using VB6
    Attached Images Attached Images
    Last edited by sidhemu; 07-09-2013 at 01:50 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    Actually i m in bit out of time so......can anyone help in dis bcoz i m also working on it.

  4. #4
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    Please Login or Register  to view this content.
    Last edited by sidhemu; 07-09-2013 at 02:01 AM.

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    If you need this urgently, then you could perhaps post in the commercial services section. No-one here will be allowed to help you until you put your code in code tags.

  6. #6
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    codes are in code tags

  7. #7
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    And thnx for the info i m new in dis forum or any forum

  8. #8
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    Please edit your original post

  9. #9
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    anything else i have to do........................i really need help in this but i really dont wanna use my head in posting a thread please understand .......... Thank you

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: vb6 code to copy cell value from one workbook to another and it should be dynamic

    this is a vb6 rather than excel question which I reckon will be hard to answer without your project files-especially as the code looks a mess to me at the moment. it would also help if you stated what your actual issue is and where-if you just want a program built then post in the commercial forum as Kyle suggested
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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