+ Reply to Thread
Results 1 to 3 of 3

URGENT: Help Required, VLookup VBA CODING now not working

Hybrid View

Spear86 URGENT: Help Required,... 05-08-2014, 05:51 AM
Spear86 Re: URGENT: Help Required,... 05-08-2014, 06:41 AM
Spear86 Re: URGENT: Help Required,... 05-08-2014, 07:23 AM
  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Angry URGENT: Help Required, VLookup VBA CODING now not working

    Hey Everyone,

    I posted this code up a while ago and it fixed, I am now about to run it live to my estate and it will not populate my user form and runs straight to the declined msg, when id's are in neither pages can anyone help with this.

    Sub Workbook_Open()
    
    ' Now call the Function to print the User Name On Open the workbook
    
        Call UserName
    
    ' Checking details for Term's & Conditions
    
    Dim aid As Range
    Dim ac As Range
    Dim ids As Range
    Dim dids As Range
    Dim dac As Range
    Dim daid As Range
    
    Set aid = Sheets("Home").Range("J47")
    Set daid = Sheets("Home").Range("Q47")
    Set ids = Sheets("Accepted Terms and Conditions").Range("A:A")
    Set dids = Sheets("Declined Terms and Conditions").Range("A:A")
    
    Set ac = ids.Find(aid)
    Set dac = dids.Find(daid)
    
    If ac Is Nothing And dac Is Nothing Then
        TCsForm.Show
    ElseIf Not ac Is Nothing Then
        Sheets("Home").Select
    ElseIf Not dac Is Nothing Then
    msg = MsgBox("You have previously declined the terms and conditions of the incentive scheme." + vbCrLf + vbCrLf + "Please email tcssincentivescheme@bskyb.com, if you have now accepted the Terms and Conditions.", vbOKOnly, "Warning")
        ActiveWorkbook.Close savechanges = True
    End If
    
        
        Application.Calculation = xlCalculationAutomatic
    ' Now select the sheet and cell reference that you want the user to view/access
        Sheets("Cover").Select
        Range("A1").Select
         
    
            ' Multiple lines in the MsgBox
    
    
    End Sub
    Last edited by Spear86; 05-08-2014 at 07:24 AM.

  2. #2
    Registered User
    Join Date
    01-10-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: URGENT: Help Required, VLookup VBA CODING now not working

    Just to state, as I did not mention -

    When ID is in Accepted - it works
    When in Decline it works

    When ID is not in either it does not bring up User Form and goes straight to Declined.

  3. #3
    Registered User
    Join Date
    01-10-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: URGENT: Help Required, VLookup VBA CODING now not working

    Solved: Issue was due to copying the Sheets over it did not recognise them

+ 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. Urgent Help Required!!!! (Please)
    By CindyB in forum Excel General
    Replies: 2
    Last Post: 06-23-2008, 07:45 PM
  2. urgent help required
    By preeti.baranwal in forum Excel General
    Replies: 4
    Last Post: 07-12-2007, 04:38 PM
  3. Some VB coding required
    By ExcelBob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2006, 11:10 AM
  4. Urgent solutions needed to resolve vba coding
    By sunflowergal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2005, 06:10 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