+ Reply to Thread
Results 1 to 8 of 8

Exporting data to a different worksheet database

  1. #1
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Exporting data to a different worksheet database

    Hi all,

    I'm need your assistance for following problem,
    I need to export (for example) data from cell = BI25:BM43
    to other database file (for example) = Database.xlsx (in the same directory or folder).
    The every new data i'm exporting , new line will be created.

    Thank you

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Exporting data to a different worksheet database

    I'm a little vague on some specifications (How do you designate which range you want copied? Which sheet in the database should it go in? Where should it go in the sheet? Do you want the db saved and closed?) so I made some assumptions. Adjust as needed, or let me know.

    Select the range you want copied, and run the code. In the database, Sheet1, it will go to the bottom of the first column you selected and copy it there.

    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Exporting data to a different worksheet database

    dear natefarm,
    The range i want to copy are the value result of an inspection (in vertical)
    The database shall start from cell A1 in sheet 1 and in horizontal condition.
    And yes i want the db to be saved & closed.

    I did run the code but i need the data start in cell A1
    then, the 2nd time running in A2

    thanks for your help

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Exporting data to a different worksheet database

    Ok, try this:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Exporting data to a different worksheet database

    Dear natefarm,

    Thank you for your assistance, but the result come out as "#Ref!".
    FYI, the selection range comes from different cell & not in order.
    And I would appreciate it if you can assist me to make the result comes out in rows
    and not in columns.

    Pardon me for my English.

    Thanks again :-)

  6. #6
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Exporting data to a different worksheet database

    Dear natefarm,

    I have this vb script from my other workbook, but it copy from worksheet to worksheet in same workbook.
    Can you assist me for this worksheet to workbook topic?

    Please Login or Register  to view this content.
    Thanks again

  7. #7
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Exporting data to a different worksheet database

    If that code does what you want, other than copying to a different workbook, then just change the following line:
    Please Login or Register  to view this content.
    to this:
    Please Login or Register  to view this content.
    It requires Database.xlsx to already be open, and then you run the code and save and close manually, but that's it. You could add the code to do that part if needed.

  8. #8
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Exporting data to a different worksheet database

    Thank you natefarm for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Exporting hyperlinked data from Excel to mySQL database
    By Petercheng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2013, 05:40 PM
  2. Exporting data to new worksheet (but only once)
    By say42 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2011, 11:16 AM
  3. Exporting data from one worksheet to another
    By jbm1967 in forum Excel General
    Replies: 3
    Last Post: 11-07-2006, 11:27 AM
  4. Exporting data from ms-access database to multiple worksheets using ASP
    By sridevi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2005, 07:06 AM
  5. [SOLVED] EXPORTING data from spreadsheet to SQL SERVER DATABASE
    By pmud in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2005, 08:06 PM

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