I have written some VBA code that requires some input from a userform. This code will dynamically control a Chart in Excel. When the Chart is selected and code to display the userform is run the following error occurs:-
Run-time error '1004'
Method 'Range' of '_Global'failed
The code to display the form is:-
Sub show_frmBandBox()
Load frmBandbox
frmBandbox.Show
End Sub
The code works when an ordinary worksheet is selected.
What is causing this error and can it be fixed please. I want to use the userform if possible.
Thanks
Run-time error '1004'
Method 'Range' of '_Global'failed
The code to display the form is:-
Sub show_frmBandBox()
Load frmBandbox
frmBandbox.Show
End Sub
The code works when an ordinary worksheet is selected.
What is causing this error and can it be fixed please. I want to use the userform if possible.
Thanks