Thread: Visual Basic
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] gkorodan@ford.com is offline
external usenet poster
 
Posts: 1
Default Visual Basic

I wrote a simple macro which changes the value of cell "A1" on the first worksheet in a workbook which contains many worksheets. Obviously, I can execute the macro from any worksheet in the workbook. However, how do I modify the macro to RETURN to the specific worksheet I was in when I executed the macro, without specifying a specific sheet? In other words, I just want the macro to bring me back to whatever sheet I was in, when I executed the macro in the first place.