Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Changin a Macro so it automatically updates the active worksheet.

Hi

I have just recorded a macro which takes info from imported text and does
some caculations and rearranges the info onto a new worksheet. My problem is
that I need it to do the same thing over several worksheets. I have
associated the macro with a button - but need it to update that active
worksheet and not the original worksheet that I used to record the macro.

Any help would be much apreciated!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Changin a Macro so it automatically updates the active worksheet.

Without seeing the actual code, we can't say definitively, but you probably
want to change Sheets("Name") to ActiveSheet. Also check for hard coded
workbook names.

Regards,
Fred.

"Confused Laura" <Confused wrote in message
...
Hi

I have just recorded a macro which takes info from imported text and does
some caculations and rearranges the info onto a new worksheet. My problem
is
that I need it to do the same thing over several worksheets. I have
associated the macro with a button - but need it to update that active
worksheet and not the original worksheet that I used to record the macro.

Any help would be much apreciated!


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
Need to identify active worksheet in macro MLK Excel Worksheet Functions 1 March 13th 07 04:29 PM
Macro for changin row height Prixton Excel Discussion (Misc queries) 5 February 22nd 07 10:34 PM
macro- move down to empty cell & active worksheet EducatingMom Excel Worksheet Functions 3 August 4th 06 11:02 PM
A Chart that Updates Automatically as Data Size Changes? Notclevr Charts and Charting in Excel 4 January 18th 06 04:19 PM
Is there a way to automatically add columns as the data updates? Eric D. Excel Worksheet Functions 1 February 24th 05 05:07 AM


All times are GMT +1. The time now is 12:32 AM.

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

About Us

"It's about Microsoft Excel"