Friday 23 September 2016

Troubleshooter of Error: Creating an update sheet

Creating an update sheet

I have large files to update with many sheets.  I have created a VBA subprocedure that updates two graphs that are on each sheet.  However, rather than opening up the VBA module and pressing the "run sub / user form" button, I would like to create a button
within a seperate sheet on my excel file that I can press and automatically run the sub procedure that updates my graphs.  The problem is that my sub procedure is created on the premise that each sheet has the same two graphs that should be updated, meaning
it will get confused if I have one sheet that only has an update button.  How can I instruct the VBA sub procedure to ignore this one update sheet (the current VBA sub procedure is below)? 
Option Explicit
Private Sub ChangeAxisScales()
   
    Dim wksSheet As Worksheet
   
    For Each wksSheet In Sheets
   
    wksSheet.Activate
   
   
    With wksSheet.ChartObjects("Chart 1").Chart
                ' Value (Y) Axis
        With .Axes(xlValue)
            .MaximumScale = ActiveSheet.Range("Overall_AxisMax").Value
            .MinimumScale = ActiveSheet.Range("Overall_AxisMin").Value
 
        End With
    End With
   With wksSheet.ChartObjects("Chart 2").Chart
                ' Value (Y) Axis
        With .Axes(xlValue)
            .MaximumScale = ActiveSheet.Range("ByIncome_AxisMax").Value
            .MinimumScale = ActiveSheet.Range("ByIncome_AxisMin").Value
        End With
    End With
   
    Next wksSheet

End Sub

Solutions to the Problem Creating an update sheet

Download SmartPCFixer to Fix It (Free)

Try this:
Private Sub ChangeAxisScales()
Dim wksSheet As Worksheet
For Each wksSheet In Sheets
    If wksSheet.Name <> "ButtonSheet" Then ' change the sheet name to suit
        wksSheet.Activate
       
        With wksSheet.ChartObjects("Chart 1").Chart
                    ' Value (Y) Axis
            With .Axes(xlValue)
                .MaximumScale = ActiveSheet.Range("Overall_AxisMax").Value
                .MinimumScale = ActiveSheet.Range("Overall_AxisMin").Value
            End With
        End With
       
        With wksSheet.ChartObjects("Chart 2").Chart
                  ' Value (Y) Axis
            With .Axes(xlValue)
                .MaximumScale = ActiveSheet.Range("ByIncome_AxisMax").Value
                .MinimumScale = ActiveSheet.Range("ByIncome_AxisMin").Value
            End With
        End With
    End If
Next wksSheet
End Sub

Machine Throttling
  • Go to the Start button.
  • In the Search box, type "regedit" (without quotes) and press Enter.
  • Look for the following registry key: "HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\ SQMClient\Windows\DisabledSessions".
  • On the right window pane, delete the subkey: "Machine Throttling".
  • Reboot your computer.

Recommended Method to Fix the Problem: Creating an update sheet:

How to Fix Creating an update sheet with SmartPCFixer?

1. Click the button to download Error Fixer . Install it on your computer.  Run it, and it will scan your system. The errors will be shown in the scan result.

2. After the scan is done, you can see the errors and problems need to be repaired. Click Fix All.

3. When the Fixing part is done, your computer has been speeded up and the errors have been fixed


Related: How Can You Update & Download NVidia 6100, 6800 GS/XT Display Driver v.260.89 WHQL,Where to Download NVidia GeForce 8800 GT WHQL-certified driver v.196.21,How to Update & Download NVidia GeForce Go 7400 Display Driver v.260.19.12,[Solved] Download NVidia GeForce GTX 460M Driver v.331.82,Download NVidia Quadro Plex Model IV VGA Driver v.304.43 Certified,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.8.17.12.6686,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.11.6.0.1030,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.9.3.0.1019,Method to Update & Download ASUS K41VD Intel INF Update Driver v.9.1.1.1015,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: Fast Solution to Error: Connection to Internet Explorer,How to Resolve - Created Keyboard layout using Microsoft keyboard layout creator but the preview does not show the correct layout.?,Cursor moves slower than my typing or moving with the arrow keys [Solved],Solution to Problem: copy row data automaticaly in another sheet,How to Fix Problem - Copy from Works and paste to an outgoing email?,Closing Internet Explorer causes error,Compare 2 Tables and Calculate the PROFIT Faster,Computer goes to Windows Boot Manager after Start,Connect to one of my network computer remotely when don't allow exception box Marked,computer locking up randomly

No comments:

Post a Comment