Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Identify Current WS?

I have a Macro that steps through several WS, looking for a particular entry.
Once found, I perform some conventional geekery, but then I need to write out
the results of my geekery to a particular R1C1 on the current WS. So I have
this construct..

Set rngWorkCell = Selection
'Set wksCurWks = Worksheets.

...second row commented out because I have no way to tell it what to use.
wkcCurWks is Dimmed as Worksheet.
--
Dave
Temping with Staffmark
in Rock Hill, SC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Identify Current WS?

set wksCurWks = ActiveSheet

--
Regards,
Tom Ogilvy


"Dave Birley" wrote:

I have a Macro that steps through several WS, looking for a particular entry.
Once found, I perform some conventional geekery, but then I need to write out
the results of my geekery to a particular R1C1 on the current WS. So I have
this construct..

Set rngWorkCell = Selection
'Set wksCurWks = Worksheets.

..second row commented out because I have no way to tell it what to use.
wkcCurWks is Dimmed as Worksheet.
--
Dave
Temping with Staffmark
in Rock Hill, SC

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Identify Current WS?

Thanks, Tom. All the Help files are busy with Adding a WS, or referencing a
WS by name. I confess -- I really did look at Help first <g!
--
Dave
Temping with Staffmark
in Rock Hill, SC


"Tom Ogilvy" wrote:

set wksCurWks = ActiveSheet

--
Regards,
Tom Ogilvy


"Dave Birley" wrote:

I have a Macro that steps through several WS, looking for a particular entry.
Once found, I perform some conventional geekery, but then I need to write out
the results of my geekery to a particular R1C1 on the current WS. So I have
this construct..

Set rngWorkCell = Selection
'Set wksCurWks = Worksheets.

..second row commented out because I have no way to tell it what to use.
wkcCurWks is Dimmed as Worksheet.
--
Dave
Temping with Staffmark
in Rock Hill, SC

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
Identify the Current Cell Staanley Excel Discussion (Misc queries) 5 February 13th 08 11:16 AM
Identify current active cell reades Excel Worksheet Functions 6 January 10th 06 12:48 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM
Identify Current Row for ActiveCell COL H Excel Programming 6 April 29th 05 10:17 PM
changing current directory to that of the current open file unnameable Excel Programming 2 May 19th 04 11:14 AM


All times are GMT +1. The time now is 12:33 PM.

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"