[mso] Re: Run Time Error 9 - Subscript out of range.
- From: "David Smart" <smartware@xxxxxxxxxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 19:13:25 +1000
You haven't said which statement produced the subscript error, so I'll
assume it is on the
> ActiveWorkbook.Sheets("Input Sheet").Activate
line. This will mean that the active workbook does not have a worksheet
with the name "Input Sheet".
Regards, Dave S
----- Original Message -----
From: <robert.allen-turl@xxxxxxxxxxxx>
To: <mso@xxxxxxxxxxxxx>
Sent: Wednesday, August 30, 2006 8:21 AM
Subject: [mso] Run Time Error 9 - Subscript out of range.
> Need help on the following:
> Visual Basic was working perfectly over the weekend but it now falls over
> at stage 1..
>
> This morning I started to build a form to record names (checkbox) and
> addresses (text box). I wrote the following opening code:
>
> Private Sub UserForm_Initialize()
>
> ActiveWorkbook.Sheets("Input Sheet").Activate
>
> Range("A3").Select
>
> With cboxClient
> .AddItem "Edwards"
> .AddItem "Johnson"
>
> End With
>
> End Sub
>
> Tried to Run Sub/User Form to check the names appeared in the Checkbox.
>
> 'Pop-up' appeared saying:
>
> Run Time Error 9 - Subscript out of range.
>
> Don't understand what this means. Will I have to reinstall Windows and
> Office?
>
> Appreciate any feedback
>
> Robert Allen-Turl
> 79 Calver Crescent
> Sapcote
> Leics LE9 4JD
> Tel: +44 1455 272762
> Fax: +44 1455 271478
> Mobile: 07818 272762
>
> *************************************************************
> You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
> MicrosoftOffice@xxxxxxxxxxxxxxxx
>
> To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
>
> To Unsubscribe from this group, visit the group's homepage and use the
> dropdown menu at the top. This will allow you to unsubscribe your email
> address or change your email settings to digest or vacation (no mail).
> http://www.freelists.org/webpage/mso
>
> To be able to use the files section for sharing files with the group, send
> a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an
> invitation with instructions. Once you are a member of the files group,
> you can go here to upload/download files:
> http://www.smartgroups.com/vault/msofiles
>
> If you are using Outlook and you see a lot of unnecessary code in your
> email messages, read these instructions that explain why and how to fix
> it:
> http://personal-computer-tutor.com/abc3/v28/greg28.htm
> *************************************************************
>
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
- Follow-Ups:
- [mso] Re: Run Time Error 9 - Subscript out of range.
- From: Dian D. Chapman
- References:
- [mso] Run Time Error 9 - Subscript out of range.
- From: robert . allen-turl
Other related posts:
- » [mso] Run Time Error 9 - Subscript out of range.
- » [mso] Re: Run Time Error 9 - Subscript out of range.
- » [mso] Re: Run Time Error 9 - Subscript out of range.
- » [mso] Re: Run Time Error 9 - Subscript out of range.
- [mso] Re: Run Time Error 9 - Subscript out of range.
- From: Dian D. Chapman
- [mso] Run Time Error 9 - Subscript out of range.
- From: robert . allen-turl