+ Reply to Thread
Results 1 to 3 of 3

VBA Help! Compile Error - Expected End with - Text to Date Change

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    Northern CA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Angry VBA Help! Compile Error - Expected End with - Text to Date Change

    Hi Forum - I keep getting a Compile Error when trying this code. I'm trying to take a column range with dates in it and convert to 20XX dates.

    I'm new to VBA; any help is appreciated.

    Thanks


    Please Login or Register  to view this content.
    Last edited by alansidman; 08-12-2016 at 04:10 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,048

    Re: VBA Help! Compile Error - Expected End with - Text to Date Change

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    Then, you are missing an END WITH as you have two WITH statements and only ONE end with.

    Please Login or Register  to view this content.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Administrator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365 Win 11 Home 64 Bit
    Posts
    21,717

    Re: VBA Help! Compile Error - Expected End with - Text to Date Change

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Compile error: Expected end with???
    By OpOrange in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2014, 08:27 AM
  2. HELP Getting a Compile Error: Expected End With
    By turtles62 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2012, 11:27 PM
  3. Compile Error: Expected End Sub
    By Dcauth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2011, 01:56 PM
  4. Compile error: Expected End Sub
    By Leeboy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-31-2011, 09:44 AM
  5. Compile Error: Expected End Sub
    By Lothar69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2011, 10:55 AM
  6. Compile Error: Expected End Sub
    By marianmix in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-28-2011, 05:31 AM
  7. compile error: Expected: = ...Why?
    By cesw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2005, 08:05 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