If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Macro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-04, 11:19
Sumir Sumir is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Macro

Ok.. here is the issue
Record or develop a Save macro that saves the workbook at the Title screen,with the cursor hidden behind the logo. Also how to attach this macro to a textbox labeled Save that appears on each screen of your workbook.Can someone help me out

Thanks
Sumir
Reply With Quote
  #2 (permalink)  
Old 02-23-04, 17:56
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Welcome to the Board!
Code:
Sub SaveMe()
  ActiveWorkbook.Save
End Sub
As far as calling it from a TextBox, after your macro is in place, right click the TextBox and select Assign Macro. I'n not sure what you mean by this part:
Quote:
saves the workbook at the Title screen,with the cursor hidden behind the logo.
Hope that helps,

Smitty
Reply With Quote
  #3 (permalink)  
Old 02-24-04, 13:58
Sumir Sumir is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
thank you for your prompt response. My workbook has a title sheet. I want a macro that will save the work book from that sheet. this means that if i am working on sheet # 255 and when i run this
macro, it should save the workbook from the titlesheet and not sheet #255.

the title sheet of my workbook has a logo. So when the macro runs the cursor should hide behind the logo.please help
thanks
Sumir
Reply With Quote
  #4 (permalink)  
Old 02-24-04, 16:48
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
OK,
Code:
Sub SaveMe()

 Application.Goto Reference:=['Title Sheet'!A1]
 ' Change Title Sheet name and the location of your logo to suit
 ActiveWorkbook.Save

End With
Assuming that you want to go to the Title Sheet upon closing, this is one method.
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)

 Application.Goto Reference:=['Title Sheet'!A1]
 ' Change Title Sheet name and the location of your logo to suit
 ActiveWorkbook.Close True

End With
Hope that helps,

Smitty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On