Reseting variables?

Jaymond Flurrie

Well-known Member
Joined
Sep 22, 2008
Messages
921
Office Version
  1. 365
Platform
  1. Windows
I used accidentally variable named vAlue ("alue" is "area" in Finnish, v from datatype Variant) and you can guess that's not a good name for a variable. So now everytime I want to write for example:
Range("A1").Value = 1
VBE automatically corrects it to
Range("A1").vAlue = 1

How do I reset this behavior?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Some editing garbage needs a bit more to get rid of than others indeed. I've seen cases where an export/remove/import isn't sufficient, but an actual copy, paste into text file, remove, insert brand new module, copy from textfile does the trick.
 
Upvote 0
So far none of these has done the trick but the harm is only cosmetic, since vAlue seems to work as value without any problems.

So what I have tried so far is copy the module's content to a text file, remove the module, save the file, exit Excel, open Excel and paste the content of the old module back into a new module.

But no, it doesn't do it in new workbooks. I can't find vAlue by searching from the project either, so it shouldn't be there

I'll let you know if I happen to fix it somehow. I guess I could try by re-creating the file. Luckily I have nothing but two modules there so that wouldn't be too hard.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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