+ Reply to Thread
Results 1 to 2 of 2

Copying VBA from one workbook to another not working

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    1

    Copying VBA from one workbook to another not working

    Hello. I am still relatively new to VBA, but I am having a problem copying a working VBA script from one workbook and having it work in another.

    It is a simple code that takes 85 fields in one workbook and sends it to an access database. The code works fine in the original workbook. Once I copy it over to another wookbook, I start getting "Type Mismatch" errors. The code (in the new workbook only) gets tripped up when the value entered is text. When I delete out the text and put in numbers as a test, a blank error box appears and nothing gets sent to the access database. I checked the access database, and the field in question is text, so the text in excel should not have been a "mismatch" in the first place.

    It seems so simple but it is driving me bonkers. Any ideas?

    The code is below:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Copying VBA from one workbook to another not working

    What it halts, hover of the Cells(i, j).Value. If the correct value is shown, then the field in Access is likely set to number only.
    David
    (*) Reputation points appreciated.

+ 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. [SOLVED] Copying Multiple Ranges to another workbook not working
    By Excel987 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-08-2013, 11:10 PM
  2. [SOLVED] Copying to separate workbook marco not working
    By Will_iam in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-30-2013, 12:11 PM
  3. [SOLVED] Copying Filtered Data From 2 Sheets of One Workbook to Another Isn't Working Correctly
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2012, 06:30 PM
  4. Replies: 0
    Last Post: 06-29-2011, 04:53 AM
  5. Replies: 1
    Last Post: 04-01-2006, 03:50 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