+ Reply to Thread
Results 1 to 3 of 3

Trouble with a VB code (both working and not working)

  1. #1
    Registered User
    Join Date
    09-11-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    2

    Trouble with a VB code (both working and not working)

    Thank you all for taking the time to read this.

    Earlier in the week I found a VB code. It worked really well up to 24 Reps, but I need it for 39 or more Reps. I'm not the best with debugging and could use some help.

    I have attached both the 24 Reps bid and the 39 Rep bid.....Can someone tell me why I'm getting an error when I try to add 25 or more Reps and shifts?

    Thanks again!
    Last edited by Jaysama; 09-13-2021 at 05:20 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Trouble with a bid award VB code (both working and not working)

    The way the original code was written didn't allow for data in columns with double letters eg columns AA, AB etc. The code below corrects for that.

    I don't know if the results are correct, but doesn't error with your example data.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-11-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Trouble with a VB code (both working and not working)

    THANK YOU! You are a lifesaver! Everything works as intended now.
    Last edited by Jaysama; 09-13-2021 at 05:21 PM.

+ 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. Trouble with Macro only working on the sheet that is currently open
    By RoyMurphy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2019, 10:26 AM
  2. vLookup not working, have already done trouble-shooting
    By Diane Hogue in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-01-2018, 06:24 PM
  3. Trouble working with workbooks saved in Sharepoint
    By MariaMR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2017, 05:06 PM
  4. [SOLVED] Trouble with macro working in one workbook but crashing Excel in another.
    By Bud Wilkinson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2016, 12:36 AM
  5. Having trouble working with a dataset
    By pedter in forum Excel General
    Replies: 10
    Last Post: 03-03-2015, 07:47 PM
  6. [SOLVED] Vba code working in workbook module but not working from personal.xlb
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-19-2014, 05:47 AM
  7. Trouble Working with data. Trying to make it all flat
    By fasterthanyours in forum Excel General
    Replies: 8
    Last Post: 04-09-2012, 10:09 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