+ Reply to Thread
Results 1 to 2 of 2

Compile error Expected: end of statement

  1. #1
    Registered User
    Join Date
    02-09-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    15

    Compile error Expected: end of statement

    Hello Expert,

    Could you please help me configure this error. The error coming from after the red font when I add that function.

    Private Sub CommandButton1_Click()
    Dim sh1 As Worksheet, a
    Set sh1 = Sheets("Data_Entry")
    a = Array(sh1.Range("E19").Value, sh1.Range("E9").Value, sh1.Range("E7").Value, sh1.Range("P17").Value, sh1.Range("S17").Value, sh1.Range("P20").Value, _
    sh1.Range("E11").Value, sh1.Range("O7").Value, sh1.Range("E434").Value, Mid(sh1.Range("E434"), 5, 7)), sh1.Range("S444").Value)

    With Sheets("ER100_Activation_Configuration").Cells(Rows.Count, 4).End(xlUp).Offset(1)
    .Resize(, 15).Value = a
    .Offset(, -2).Value = .Row() - 2
    .Offset(, -1).Value = Format(Now(), "mm-dd-yy")
    End With
    End Sub

    Thanks in advanced!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Compile error Expected: end of statement

    One too many right brackets ")" at the end of the red text.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  2. [SOLVED] Compile error: Expected end of statement
    By RoOmIE in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2013, 10:04 AM
  3. [SOLVED] Compile Error: Expected: End of Statement
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2012, 09:37 AM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. compile error, Expected: end of statement
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2010, 08:30 AM
  6. Compile Error Expected: End of statement
    By AKarmyguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2010, 02:20 AM
  7. How to fix a Compile Error Expected: End of statement.
    By AKarmyguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2010, 02:19 AM

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