Hi,
I'm trying to run VBA code and it's prompting me the error 'Subscript out of range'.
Can someone help me deal with this error.
I have couple of modules in my project and forms too.
HOw to identify this.
Hi,
I'm trying to run VBA code and it's prompting me the error 'Subscript out of range'.
Can someone help me deal with this error.
I have couple of modules in my project and forms too.
HOw to identify this.
If you have an array, for example, it means the index to that array is too high or too low. If it is referring to a workbook or worksheet collection, it means that element doesn't exist (is not found).
Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
My excel has got empty data, but I must upload an image from my machine and extract it. How to handle this?
We don't want an image. That's not helpful. Please read the instructions at the top of the thread in the yellow box.
My code is going unresponsive immediately after I ran. Help me with techniques. I don't understand the error. It's already and inbuilt code long back and I must debug it.
Attach your workbook - nobody can help without seeing the code in situ.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Sure., but not sure about the rules/guidelines and confidentiality of posting the entire code/modules.
Last edited by vineesha93; 10-12-2023 at 05:54 AM.
We don't want the entire workbook. We need a small representative and anymised sample and the relevant code. Enough theat we can run the code and replicate the problem.posting the entire code/modules.
If it has worked for a long time, what has changed recently? Window update? Office update? Changes to the workbook? Changes on the worksheets? Or the worksheet names?
Pasting the code below,
The scenario is there is a userform and a button. I must identify from were the button is being called.
![]()
Please Login or Register to view this content.
Last edited by AliGW; 10-13-2023 at 03:06 AM. Reason: Code tags added - please review the forum guidelines.
Please review the forum guidelines on CODE TAGS. I have added them for you this time.
That's not how this forum works. People volunteer their time as and when they can. Do not use PMs in this way.Hello,
I really need a very quick help with vba.
You were asked for a sample file that demonstrates the problem. You haven't provided it. You haven't even identified where in the code it errors. And, without a file and instructions on how to replicate the problem, we can't help you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks