Macros

CanadianDon

New Member
Joined
Jul 29, 2011
Messages
7
I need to create a macro that says.. Help Me ! .... I then need that macro to only be in one specific cell...say A9... I have recorded the macro and assigned it to the button... but I can't get it only to be in A9... please help.

Thanks,
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
What do you mean "specific to cell A9"?
What should be triggering this macro to run?
Selecting the cell A9, or editing the cell A9?
 
Upvote 0
You mean something like this?
Code:
Sub MyMacro()
  Range("A9") = "Help Me"
End Sub
 
Upvote 0
I tried both of these, but I can click on any cell, hit the button... and it will also display in the current field I am in along with A9... any ideas on how to only show the results in A9 regardless of what cell i am in
 
Upvote 0
The macro's clearly state:

Code:
Range("A9") = "Help Me"

this will only write the words in cell A9 of the active sheet.

Either you're not clear enough in your question, either you're applying/testing the code in a wrong way.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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