Results 1 to 3 of 3

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

Threaded View

mmaya VBA Help! Compile Error -... 08-12-2016, 02:35 PM
mikeTRON Re: VBA Help! Compile Error... 08-12-2016, 02:45 PM
alansidman Re: VBA Help! Compile Error... 08-12-2016, 04:10 PM
  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


    Sub Format_dates()
    
    Sheets("Raw Data").Select
    
    LastRow = Range("Q" & Rows.Count).End(xlUp).Row
    
    With Range("R1")
    .Value = "0"
    .Copy
    With Range("Q5:Q" & LastRow)
    .PasteSpecial xlPasteValues, xlPasteSpecialOperationAdd
    .NumberFormat = "mm/dd/yyyy"
    
    End With
    Application.CutCopyMode = False
    
    End Sub
    Last edited by alansidman; 08-12-2016 at 04:10 PM.

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