At that top of a macro I need to check if the active cell is in column-B (any row). If not, display a msgbox and go to end of macro. Along that line, how would I obtain the active row or column number and store it in a Dim?
At that top of a macro I need to check if the active cell is in column-B (any row). If not, display a msgbox and go to end of macro. Along that line, how would I obtain the active row or column number and store it in a Dim?
Maybe:
Please Login or Register to view this content.
Thank you John H. Davis. I was trying this same thing with "Set" for storing the column number and it wouldn't fly... so simple yet frustrating.
You're welcome. Thanks for the feedback. Please comply with Forum Rule No. 9.
9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks