Easy Question

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607
I feel dumb asking this

This is on an excel user form with vb code

I used a variable i made called rowS

now i need to use the built in excel function called rows()

i am using the built in fuction in another sub, a differnt command button but it still changes my rows to rowS.

Does option explicit change this?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You have found out the reason to never use reserved names in your variables.
It is best to change your variable to a non-reserved name.
 
Upvote 0
kavy

As John has pointed out it's a bad idea to use names that could conflict with VBA functions/properties/methods etc

Why do you need to use Rows() in VBA anyway?
 
Upvote 0
ah i don't, i didn't know it was a variable reseverd, I proably should of though... I guess its time to use find and replace, luckly all my "rowS" are variables
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,605
Members
449,038
Latest member
Arbind kumar

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