Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Pass worksheet to macro as a parameter

Hi, I've got following situation. I'm trying to create a command bar,
which help other users make calculation Things are working fine,
almost. With my macro user can open txt file, macro is making some
changes in format, adding columns, formulas, sorting etc. At the end I
want to remove unnecessary rows (with non numeric and empty cells in
column A), when I give fixed name of the sheet it works well. But how
to pass the opened sheet name to this macro, to make changes on that?

TIA

Przemek

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Pass worksheet to macro as a parameter

activesheet.name
--
HTH...

Jim Thomlinson


"Przemek" wrote:

Hi, I've got following situation. I'm trying to create a command bar,
which help other users make calculation Things are working fine,
almost. With my macro user can open txt file, macro is making some
changes in format, adding columns, formulas, sorting etc. At the end I
want to remove unnecessary rows (with non numeric and empty cells in
column A), when I give fixed name of the sheet it works well. But how
to pass the opened sheet name to this macro, to make changes on that?

TIA

Przemek


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
pass parameter to access query Bill Manville Links and Linking in Excel 4 May 1st 23 03:45 AM
Pass date parameter into MS Query Richard Edwards Excel Discussion (Misc queries) 2 June 20th 08 11:43 AM
Is it possible to pass a parameter into IN operator in Query? DennisS Excel Discussion (Misc queries) 0 June 26th 07 09:27 AM
Application.OnTime -- Unable to Pass Macro with Numeric Parameter Butaambala Excel Programming 7 June 7th 05 10:55 PM
Pass Parameter to Access Query Al Excel Programming 3 April 29th 04 10:15 AM


All times are GMT +1. The time now is 01:45 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"