#1   Report Post  
Steved
 
Posts: n/a
Default Sub SaveNClose()

Hello from Steved

If Im working in another sheet but I want it to go the first sheet then save
what is required please to the macro below

Sub SaveNClose()
Application.Goto Reference:="R5C1"
ActiveWorkbook.Close True
End Sub
Thankyou.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Try this Steve

Application.Goto Reference:=Worksheets(1).Range("A5")


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Steved" wrote in message ...
Hello from Steved

If Im working in another sheet but I want it to go the first sheet then save
what is required please to the macro below

Sub SaveNClose()
Application.Goto Reference:="R5C1"
ActiveWorkbook.Close True
End Sub
Thankyou.



  #3   Report Post  
Steved
 
Posts: n/a
Default

Excellent

Thankyou.

"Ron de Bruin" wrote:

Try this Steve

Application.Goto Reference:=Worksheets(1).Range("A5")


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Steved" wrote in message ...
Hello from Steved

If Im working in another sheet but I want it to go the first sheet then save
what is required please to the macro below

Sub SaveNClose()
Application.Goto Reference:="R5C1"
ActiveWorkbook.Close True
End Sub
Thankyou.




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



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