#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Last row Code

This is the third time I have tried to post this question. I can't seem to
find it anywhere. My question is this. I have the below code, which works
great. Howvever, I would like it to reference the active sheet, as opposed
to a spelled pout one. This way I can use repeatedly, without having to
reference the specific sheet name.

Any help would be great.

Thanks!

Mike
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Last row Code

This is the third time I have tried to post this question. I can't seem
to
find it anywhere. My question is this. I have the below code,


There was no code below...


which works great. Howvever, I would like it to reference the active
sheet,
as opposed to a spelled pout one. This way I can use repeatedly, without
having to reference the specific sheet name.


Where you spell out the sheet name (as a String value), I would guess you
could replace that String value with this...

ActiveSheet.Name

and concatenate that in instead.


Rick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Last row Code

With Activesheet

'do stuff

End With

But what is wrong with referencing a specific sheet name, at leat you know
you have the correct sheet then. Someone or something may change the
activesheet.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Mike Milmoe" wrote in message
...
This is the third time I have tried to post this question. I can't seem
to
find it anywhere. My question is this. I have the below code, which
works
great. Howvever, I would like it to reference the active sheet, as
opposed
to a spelled pout one. This way I can use repeatedly, without having to
reference the specific sheet name.

Any help would be great.

Thanks!

Mike



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
Convert a Number Code to a Text Code Traye Excel Discussion (Misc queries) 3 April 6th 07 09:54 PM
Unprotect Code Module in Code Damien Excel Discussion (Misc queries) 2 April 18th 06 03:10 PM
Need 2 add second then third code with first code in the Tab View nick s Excel Worksheet Functions 3 December 6th 05 02:20 AM
copying vba code to a standard code module 1vagrowr Excel Discussion (Misc queries) 2 November 23rd 05 04:00 PM
Write a code by code Excel Discussion (Misc queries) 1 March 23rd 05 02:34 PM


All times are GMT +1. The time now is 07:08 PM.

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"