RE: Compile error: rows
I recently posted the following and Jonmo1 was kind enough to reply. He suggested that I might hunt for a sub with the same name and rename this sub. I found that I needed to put w/b and w/s arguments in front of Rows.
I use the following
or
and VBA changes the Upper case R to a lower case r and gives this message:
Compile error:
Wrong number of arguments or invalid property assignment
Here is my question: I was using a sub from one workbook to hide rows on the active workbook ( I have a two screen setup) and I suspect that this was causing the problem. I have built a bunch of macros in one workbook which I use to protect/unprotect, format etc. the active(under construction) workbooks. Is this ill-advised?
I recently posted the following and Jonmo1 was kind enough to reply. He suggested that I might hunt for a sub with the same name and rename this sub. I found that I needed to put w/b and w/s arguments in front of Rows.
I use the following
Code:
Rows("100:120").Hidden = True
Code:
Rows("100:120").EntireRow.Hidden = True
Compile error:
Wrong number of arguments or invalid property assignment
Here is my question: I was using a sub from one workbook to hide rows on the active workbook ( I have a two screen setup) and I suspect that this was causing the problem. I have built a bunch of macros in one workbook which I use to protect/unprotect, format etc. the active(under construction) workbooks. Is this ill-advised?