+ Reply to Thread
Results 1 to 4 of 4

Importing data from oracle over ODBC in sheet which has preexisting columns with formula

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Importing data from oracle over ODBC in sheet which has preexisting columns with formula

    Hi all,

    I have sepnd 2 days seraching on net to get answer to what I am trying but in vain. Any help on this is HIGHLY appreciated.

    Here is what I am trying to do:
    I have one sheet in which I am fetching data from ODBC (Oracle conection). This data goes into column A1:T200. This data is imported as table (Table1) may be becuase I am using
    With Sheets("Sheet1").ListObjects.Add(SourceType:=0, Source:=Array(Array( ......)

    In column V, I have created formula based on Table1_ColumnT.

    I need to refresh/import Table1 frequently and before that I need to clearcomtent or delete the table. I am facing issues with both these.
    If I do clearContent before importing new data, it gives me error 1004: A table cannot overlap a range ....
    If I do delete on Table1, my column V (where formula resides) becomes column B and then gets overwritten when refresh/import happens.

    I badly need help in this as after 2 days I am going no where.

    Thanks in advance.

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Importing data from oracle over ODBC in sheet which has preexisting columns with formu

    You can try using this function to add the forumla after the table is copyed to the sheet.
    Please Login or Register  to view this content.
    Offset = how many rows down from the active cell, how many columns right of the active cell.
    You can change that.
    Thats one option how to do it maby some one will come up with a better solution.

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Importing data from oracle over ODBC in sheet which has preexisting columns with formu

    Thanks for quick response. I will try this but my limitation is, I am going to give this excel file to others once ready and they would be adding further formula columns as needed. They wouldn't be writing VB code for the same hence I would prefer to have the formula in excel column rather than in VB, if possible !

    Anyone can please help here ?

  4. #4
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Importing data from oracle over ODBC in sheet which has preexisting columns with formu

    Actualy this addeds the formula to the cell you want. It doesn't keep the formula working in the background.
    Well, As you wish. I can't help you the other way, sory.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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