Macro use in different location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I create a macro (excel 2003)-security low or medium- in one location and
then when I try to run the macro in another location it just goes back and
repeats itself in the original location.

How do I get the macro to be independent of the originial creation location?
 
Hi
post your code :-)

--
Regards
Frank Kabel
Frankfurt, Germany

dersu said:
I create a macro (excel 2003)-security low or medium- in one location and
then when I try to run the macro in another location it just goes back and
repeats itself in the original location.

How do I get the macro to be independent of the originial creation
location?
 
This is the code.
Thank you,

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 8/13/2004 by Steve
'
' Keyboard Shortcut: Ctrl+z
'
Range("B2495:H2495").Select
Selection.Copy
Range("B2496:H2496").Select
ActiveSheet.Paste
Range("B2496:H2496").Select
Selection.Font.Bold = True
Range("B2498").Select
End Sub
 
Hi
this is because the ranges are hardcoded within the code. You may
describe what you're trying to do. Do you want to paste always the
current selection to a specific range?
 
Hi,
I want to copy from a specific range on one line then
past that information in the same range on the next line below

Thank you,
Dersu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top