+ Reply to Thread
Results 1 to 2 of 2

Bulk Load Excel VBA

  1. #1
    Registered User
    Join Date
    12-10-2018
    Location
    Chennan India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Bulk Load Excel VBA

    Hi ,

    I have a code for bulk load insert from excel to SQL. if we give the range it is giving the following error

    "The Microsoft access database could not find the Object"

    if we give the range as Sheet1$, it is working but i want the range to be given.

    i could not find the solution anywhere

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Bulk Load Excel VBA

    Hello

    if we give the range as Sheet1$, it is working but i want the range to be given.
    The worksheet name followed by a dollar sign, i.e. "Sheet1$", is an SQL Table reference. To reference a Range on the worksheet, follow the table name with the relative range address (No dollar signs) like this "[Sheet1$A1:C100000]".

    Here is an example of adding the worksheet name automatically to the query string.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. Bulk Export VCF to Excel
    By probuddha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2019, 09:39 AM
  2. [SOLVED] excel bulk data modification
    By khushboo# in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2017, 08:07 AM
  3. Bulk Replace in Excel
    By sunnyujjawal in forum Excel General
    Replies: 4
    Last Post: 09-09-2014, 07:25 AM
  4. Bulk mail using excel and outlook
    By pskroes in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2010, 01:14 AM
  5. how to do Bulk find and replace in excel?
    By aemunathan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2009, 02:50 PM
  6. Replies: 2
    Last Post: 04-20-2006, 07:15 PM
  7. [SOLVED] What is the fastest way to bulk load data into Excel?
    By Gail Hurn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2005, 05:06 PM

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