Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default How can I get a macro to populate the answer into one specific cel

I want to record a Macro that when clicked on, will run a formula and
populate the answer into the same specific cell every time it's clicked, no
matter what cell my cursor is active in at the moment I click the macro. Is
there a way to do this?

Right now I have the macro performing the calculation properly, but it
populates the answer into whatever cell I happen to be active in when I click
the macro. I want it to always populate the answer into one specific cell.

Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How can I get a macro to populate the answer into one specific cel

hi
it would help if you post your code.

Regards
FSt1

"Matt" wrote:

I want to record a Macro that when clicked on, will run a formula and
populate the answer into the same specific cell every time it's clicked, no
matter what cell my cursor is active in at the moment I click the macro. Is
there a way to do this?

Right now I have the macro performing the calculation properly, but it
populates the answer into whatever cell I happen to be active in when I click
the macro. I want it to always populate the answer into one specific cell.

Any help would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default How can I get a macro to populate the answer into one specific

Sub SHARECALCA()
'
' SHARECALCA Macro
' Macro recorded 3/17/2009 by Matthew J. O'Neill
'

'
ActiveCell.FormulaR1C1 = "=MROUND((R6C3*100/R6C4),1000)"
Range("B6").Select
Selection.Copy
Range("B6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End Sub






"FSt1" wrote:

hi
it would help if you post your code.

Regards
FSt1

"Matt" wrote:

I want to record a Macro that when clicked on, will run a formula and
populate the answer into the same specific cell every time it's clicked, no
matter what cell my cursor is active in at the moment I click the macro. Is
there a way to do this?

Right now I have the macro performing the calculation properly, but it
populates the answer into whatever cell I happen to be active in when I click
the macro. I want it to always populate the answer into one specific cell.

Any help would be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How can I get a macro to populate the answer into one specific

hi
right now you formula is keying on C6 and D6 and pasting the results in B6.
is that what you want????

Regards
FSt1

"Matt" wrote:

Sub SHARECALCA()
'
' SHARECALCA Macro
' Macro recorded 3/17/2009 by Matthew J. O'Neill
'

'
ActiveCell.FormulaR1C1 = "=MROUND((R6C3*100/R6C4),1000)"
Range("B6").Select
Selection.Copy
Range("B6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End Sub






"FSt1" wrote:

hi
it would help if you post your code.

Regards
FSt1

"Matt" wrote:

I want to record a Macro that when clicked on, will run a formula and
populate the answer into the same specific cell every time it's clicked, no
matter what cell my cursor is active in at the moment I click the macro. Is
there a way to do this?

Right now I have the macro performing the calculation properly, but it
populates the answer into whatever cell I happen to be active in when I click
the macro. I want it to always populate the answer into one specific cell.

Any help would be greatly appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not allowing to continu unless a specific cell has specific answer madubois9 Excel Discussion (Misc queries) 3 October 25th 07 12:45 AM
Populate one cell with specific figure slavenp Excel Discussion (Misc queries) 4 August 17th 07 08:22 AM
Populate one cell with specific figure Mike H Excel Discussion (Misc queries) 0 August 17th 07 01:44 AM
Use a code to populate a cell with a specific value braveT Excel Worksheet Functions 5 April 13th 07 10:02 PM
Cells populate on specific dates JD MPLS Excel Worksheet Functions 1 February 9th 06 03:12 PM


All times are GMT +1. The time now is 06:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"