+ Reply to Thread
Results 1 to 2 of 2

Need help to debug a short VBA Excel 2007 problem

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    Brookdale, CA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question Need help to debug a short VBA Excel 2007 problem

    Can anyone tell me what is wrong with this code? Please!!

    Here is what I'm trying to do. Column A, B, C has the correct data
    I’m trying to have Excel look at the contents in Cell E (Account #2) and match it with A,B,C and extract to another column (say G). B cell goes to 427,776 rows and E cell goes to 1,406. The end goal is to get the Salesforce ID & Company name lined up with the accounts in Account #2. I’ve got to load the data into SF for Column E with the SF ID. Salesforce will not recognize internal Account ID so the SF ID has to be aligned with the proper company for the accounts in Account #2. A sampling below
    I would greatly appreciate any help that can be offered.

    Company SF ID Account # Account # 2
    Mag Hotels/Midvale 0017000000ekiOb 5970 3267750
    Deve Kennedy 0017000000n1d7n 12864550 1644820
    Oglethoe Motel 0017000000jpNT3 6091099 6186657


    I don't know what I'm doing wrong but keep getting a compile error. I have tried different values for the "Do" command line, all to no avail.

    Here is the code:


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by cheekybird; 10-01-2012 at 12:26 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Need help to debug a short VBA Excel 2007 problem

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Last edited by protonLeah; 09-30-2012 at 09:59 PM.
    Ben Van Johnson

+ 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