New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

Command Buttons to save worksheets

Macros, VBA, Excel Automation, etc.

Command Buttons to save worksheets

Postby SammyPNM » Fri Dec 18, 2015 11:26 am

I have created a survey with option buttons. There will be 65 copies of the survey on 65 different worksheets. The data from each survey questions will be saved to a "results" worksheet. I need to program a submit button that will save the survey responses from each sheet after the user updates it. Please help!
  • 0

SammyPNM
Rookie
 
Posts: 2
Joined: Dec 18, 2015
Reputation: 0
Excel Version: 2010

Re: Command Buttons to save worksheets

Postby NoSparks » Sat Dec 19, 2015 10:53 am

It's your project.
No doubt you know what you're starting with and what you would like to end up with.
Perhaps the "Amazing Kreskin" will join the forum and assist you.

Failing that, maybe
post a sample workbook indicative of survey sheet, desired results and current code you are working on.
  • 0

NoSparks
Excel Hobbyist
 
Posts: 637
Joined: May 28, 2014
Reputation: 103
Excel Version: 2010

Re: Command Buttons to save worksheets

Postby SammyPNM » Mon Dec 21, 2015 11:19 am

So I am trying to use this code:

Code: Select all
Sub test()
ActiveWorksheet.Save
ActiveWorkbook.Save

End sub
  • 0

SammyPNM
Rookie
 
Posts: 2
Joined: Dec 18, 2015
Reputation: 0
Excel Version: 2010

Re: Command Buttons to save worksheets

Postby pecoflyer » Mon Dec 21, 2015 12:34 pm

@sammy

Hi and welcome.

As you can see written in red font on the page we ask to wrap code with code tags.
I will do it for you this time
  • 0

A relevant topic title helps get faster and more answers
pecoflyer
Moderator
 
Posts: 1274
Joined: Jan 24, 2012
Location: Belgium
Reputation: 39
Excel Version: 2003/2007/2010

Re: Command Buttons to save worksheets

Postby NoSparks » Tue Dec 22, 2015 12:06 pm

SammyPNM wrote:So I am trying to use this code:

Code: Select all
Sub test()
ActiveWorksheet.Save
ActiveWorkbook.Save

End sub

To do what?
  • 0

NoSparks
Excel Hobbyist
 
Posts: 637
Joined: May 28, 2014
Reputation: 103
Excel Version: 2010


Return to Macros and VBA Questions

Who is online

Users browsing this forum: No registered users and 224 guests