+ Reply to Thread
Results 1 to 3 of 3

VBA & CSV (Post Office Update) - VBA no longer working

  1. #1
    Registered User
    Join Date
    03-21-2015
    Location
    England
    MS-Off Ver
    Office 2013 & Office 365
    Posts
    2

    VBA & CSV (Post Office Update) - VBA no longer working

    Hi I'm a novice with VBA and the below may not be done in a VBA professional method; this code has worked without issue for the last 1.5 years until a recent update to Office 365 ProPlus Version 15.0.4693.1002 - a role back to an earlier version of Office 365 ProPlus and the code works.

    The Code:
    Private Sub CommandButton1_Click()
    thiswkbook = ActiveWorkbook.Name
    Sheets("paste cand. full report here").Visible = True
    Dim MyFileName As Variant
    MyFileName = Application.GetOpenFilename(, , "Select Programme")
    MyFileName = Mid(MyFileName, InStrRev(MyFileName, "\") + 1)
    If MyFileName = "False" Then
    Sheets("paste cand. full report here").Visible = False
    Exit Sub
    End If
    Workbooks.Open MyFileName
    If ActiveSheet.Range("c1") = "mname" Then GoTo EM2:
    Cells.Select
    Cells.Copy
    Windows(thiswkbook).Activate
    Sheets("paste cand. full report here").Select
    Cells.PasteSpecial
    Dim pt As PivotTable
    Dim WS As Worksheet
    Application.CutCopyMode = False
    Workbooks(MyFileName).Close SaveChanges:=False
    GoTo Last:
    EM2:

    Last:
    Sheets("paste cand. full report here").Visible = False
    End Sub

    Error Message:
    Run-time error ‘-2147417848 (80010108)’:
    Method ‘PasteSpecial’ of object ‘Range’ Failed


    I would appreciate any assistance with the above.

    Thanks
    Steven

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

    Re: VBA & CSV (Post Office Update) - VBA no longer working

    Check this out
    https://social.technet.microsoft.com...es?forum=excel

  3. #3
    Registered User
    Join Date
    03-21-2015
    Location
    England
    MS-Off Ver
    Office 2013 & Office 365
    Posts
    2

    Re: VBA & CSV (Post Office Update) - VBA no longer working

    Hi Davesecel,
    Thank you for your prompt response; Post the December update an issue (separate to the above issue) occurred with Form Controls and we needed to delete all *.EXD files to fix the problem. The above problems happened since the Feb update and the *EXD files being deleted have no affect.

    Thanks.
    Ste

+ 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. Moving from Office 2003 to Office 2013 - code no longer works
    By GeorgeC47 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2014, 11:20 AM
  2. Goto First New Post No Longer Working
    By JBeaucaire in forum Suggestions for Improvement
    Replies: 9
    Last Post: 05-01-2012, 10:07 AM
  3. Email Out of Excel Code no longer working due to update or drive change.
    By Kidcarlosuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2012, 06:37 AM
  4. Replies: 0
    Last Post: 07-14-2011, 10:15 PM
  5. Microsoft will no longer support VBA in next Office
    By LaraBethStone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2007, 08:12 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