Why can't I use the following formula in VB? How can this be solved?
It seems to me that we can't use R1C1 expression in range. Anyway to go around it?![]()
Please Login or Register to view this content.
Why can't I use the following formula in VB? How can this be solved?
It seems to me that we can't use R1C1 expression in range. Anyway to go around it?![]()
Please Login or Register to view this content.
Last edited by one8421; 01-23-2009 at 03:17 AM.
Please wrap your code in CODE tags per the forum rules. And there is nothing wrong with the code you posted above; it can be used in VBA.
Jason
I have added code tags, make sure you read & follow the forum rules in future.
There's nothing wrong with your posted code.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Whilst the code you posted normally works I have seen several cases were it was necessary to add the Address command to the Cell command
![]()
Please Login or Register to view this content.
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
Hi
You have unqualified sheet references which will cause you problems if the Activesheet is different from Sheet1. You need:
Note the periods (.) before the Cells().![]()
Please Login or Register to view this content.
Richard
Richard Schollar
Microsoft MVP - Excel
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks