Setting the ActiveCell is not working

Foo_Man_Chu

Board Regular
Joined
Jul 22, 2010
Messages
79
I feel embarrassed about posting this one, but I'm at my wit's end. Here's my code:

Code:
Public Sub setactivecell()
    Worksheets("Sheet1").Activate
    Worksheets("Sheet1").Range("F1:H4").Select
    Worksheets("Sheet1").Range("G3").Select
    MsgBox (activecell.address)
End Sub

This is the only line I really care about:

Code:
Worksheets("Sheet1").Range("G3").Select

If you haven't guessed it by now, all I want to do is set the ActiveCell on the sheet. But for all that I do it sets the ActiveCell to D3.

Somebody please help.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Thanks a ton Stephen, I'd be typing in all caps right now but I don't want to be rude. That was the answer. Thank you a million times over!
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,160
Members
449,209
Latest member
BakerSteve

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