Lost functionality

dconn

New Member
Joined
Sep 8, 2017
Messages
3
We recently lost functionality within one of our workspreadsheets. Our I.T. departments thinks that it may have something todo with a recent Microsoft update and a dated excel macro.

When the macro is working properly it should open a separatereference spreadsheet, copy a range of cells, insert the copied information,and update everything within the spreadsheet with the new information.

Currently when we try to run the macro a warning pops upstating (Some files can contain viruses or otherwise be harmful to yourcomputer. It is important to be certain that this file is from a trustworthysource.) When OK is selected the spreadsheet churns for several min. withoutcompleting the update. Please find the first couple of lines below.
Code:
Application.ScreenUpdating = False
    Application.Calculation =xlCalculationManual
    Sheets("SAPW").Visible =True
   Sheets("Sapw").Select
    Application.DisplayAlerts = False
    ActiveWorkbook.FollowHyperlink"File Path",NewWindow:=False
    Sheets("Codes").Select
    Application.DisplayAlerts = True
    Range("A2:D8000").Select
    Selection.Copy
    Application.DisplayAlerts = False
    ActiveWindow.Close
    Application.DisplayAlerts = True
    Range("r703").Select
    ActiveSheet.Paste
    Range("R1:S1").Select
    Selection.Copy
    Range("P703").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    Selection.AutoFillDestination:=Range("P703:Q11000"), Type:=xlFillDefault
To date we have tried adding the reference file as a trustedLocation and Document, removed all macros from the reference file, and changingthe location of the reference document on our network. Any help or thoughts would be greatly appreciated.

Thanks!
 
Last edited by a moderator:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Thanks "steve the fish"

I swapped the code line ActiveWorkbook.FollowHyperlink"File Path",NewWindow:=False out with Workbooks.Open "file path" , but unfortunately receive the same results. Pop-up followed with churning.
 
Upvote 0
**correction**

Thank you steve the fish!

I forgot that we had used the FollowHyperlink command in multiple sections. After updating all of them to workbooks.open the spreadsheets seems to be working properly again. :cool:
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,710
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top