It would be much easier for us to help you if you would post your existing macro. See
KM Wiki: How to Post/Upload Your Macro to the Forum
Macro: [KM] UPLOAD Macro to New or Existing Topic
For more information, see the wiki Searching the Forum for Answers section.