+ Reply to Thread
Results 1 to 3 of 3

Run time error 6 overflow

Hybrid View

323100N Run time error 6 overflow 04-16-2018, 11:54 AM
davesexcel Re: Run time error 6 overflow 04-16-2018, 03:26 PM
xlnitwit Re: Run time error 6 overflow 04-16-2018, 04:43 PM
  1. #1
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Run time error 6 overflow

    receiving this error Run time error 6 overflow while doing this code.
    Sub Format()
    Dim lReply As Long
    Columns("b").TextToColumns Destination:=Range("b1"), DataType:=xlDelimited, FieldInfo:=Array(1, 3)
    Application.MacroOptions Macro:="Format", _
    ShortcutKey:="w"
    
        
        lReply = MsgBox("Would you like to proceed?", vbOKCancel)
        If lReply = vbCancel Then Exit Sub
        Sheets("OIB - Consolidator").Range("D:D,I:I,K:N,Q:V").EntireColumn.Delete
        Sheets("OIB - Consolidator").Range("D:E").NumberFormat = "General"
        Sheets("OIB - Consolidator").Range("G:G").NumberFormat = "0"
        'Sheets("OIB - Consolidator").Range("B:B").NumberFormat = "mm/dd/yy"
        
        
    Call Delete_Row
    
    
    End Sub

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,529

    Re: Run time error 6 overflow

    You could have issues with the code you are not showing.

    What line shows the error?

    Dim lReply As Long
    Is there a reason you placed this as long?

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Run time error 6 overflow

    Just as an observation, Format is not a good name for a routine as it is the name of a VBA function.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Run-Time Error 6: Overflow
    By jquintana83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2016, 12:51 PM
  2. [SOLVED] run-time error 6: Overflow
    By a.hudrea in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2015, 07:39 AM
  3. Run-time error 6: overflow
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2015, 06:24 AM
  4. [SOLVED] Run-Time error 6 'Overflow'
    By guatelize in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2012, 07:08 AM
  5. [SOLVED] Run Time Error '6'-OverFlow
    By mjali001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2012, 01:50 PM
  6. Run time error 6 Overflow?
    By ben5496 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2011, 09:00 PM
  7. Run-time error '6': Overflow
    By magoobee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2006, 12:54 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