+ Reply to Thread
Results 1 to 2 of 2

how to make code work

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    how to make code work

    Hi,

    I have two codes that workes seperatly, but cant make them work together.
    Regarding to macrocoding i´m in the startpitch, so it would be fantastic if somebody could have a look at this and maybe help me make it work.

    Hopefully also explane the different parts of the code for me.

    I have attached a printscreen of the code with the error i get.

    Regards
    Oeysbrei
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: how to make code work

    Hi,

    The Compile error is giving you the answer. You are using an If statement without End If. You can only omit this if the statement is all one line of code like:

    Please Login or Register  to view this content.
    In your case you need to write End IF probably after the End With if you don't want any of this code to run if the IF statement is false.

    Good luck.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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