Microsoft Office

Microsoft Office Questions? Ask a IT Expert for Support ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Microsoft Office
This answer was rated:

I have a excel program that has 1 sheet give the info for another

sheet, then I run a...
I have a excel program that has 1 sheet give the info for another sheet, then I run a macro that saves each sheet separately in a different folder the problem I am having is when the sheet gets saved it does not keep any of the info that was filled out from the first sheet, I used if statements to fill out the cells in the second sheet, this is my macro for the saving and restarting my project. I think it will be easier for someone to understand or fix the problem with the file and macro so I can upload it if needed just let me know

Sub Saveandstartover()
'
' Saveandstartover Macro
'

' saves poreqform with the file name taken from cell k69
Sheets("POREQFORM").Select
Sheets("POREQFORM").Copy
thisfile = Range("k69").Value
ActiveWorkbook.SaveAs Filename:="D:\new sws folder\maintenance\poreq\" & thisfile
ActiveWorkbook.Close

' saves vehicle repair order with the file name taken from cell r54
Sheets("vehicle repair order").Select
Sheets("vehicle repair order").Copy
thisfile = Range("r54").Value
ActiveWorkbook.SaveAs Filename:="D:\new sws folder\maintenance\roreq\" & thisfile
ActiveWorkbook.Close
' Clears the old POreqform
Sheets("POREQFORM").Select
Range("L1:P1").Select
Selection.ClearContents
Range("L5:P5").Select
Selection.ClearContents
Range("D7:I8").Select
Selection.ClearContents
Range("B16:E17").Select
Selection.ClearContents
Range("F16:J17").Select
Selection.ClearContents
Range("K16:O17").Select
Selection.ClearContents
Range("B20:N47").Select
Selection.ClearContents
Range("F49:H49").Select
Selection.ClearContents
Range("F50:H50").Select
Selection.ClearContents
Range("K50:L50").Select
Selection.ClearContents
Range("K49").Select
Sheets("Vehicle Repair Order").Select
Range("AS22:AT47").Select
Selection.ClearContents
Range("C8:G8").Select
Selection.ClearContents
Range("C14:G14").Select
Selection.ClearContents
Range("C36:G36").Select
Selection.ClearContents
Range("C49:G50").Select
Sheets("POREQFORM").Select
Range("F50:H50").Select

End Sub
Show More
Show Less
Ask Your Own Microsoft Office Question
Answered in 6 hours by:
5/14/2013
Jason Jones
Jason Jones, Computer Technician
Category: Microsoft Office
Satisfied Customers: 17,381
Experience: Over 10 years work experience.
Verified


Hello and thank you for your question today. My name is Jason. I look forward to helping you today.

Please, let me see the document that you are having this problem with.

Please, be forewarned that the site is not secure:
- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago

http://wikisend.com/download/779280/Orl Mechanics Work.xlsm


 


Orl Mechanics Work.xlsm


 


the macro is called saveandstartover


 


 


Please, elaborate on what part of the macro is not working.

I ran it and it seems to work.
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


the file that saves as the RO file is empty the name is XXXXX XXXXX any info that I put in it does not stay with it


 


the poreq puts the same info on the roreq then they get split up, if you fill in the vendor, date, equip # XXXXX equip mileage on the poreqform it should be placed on the ro form

Thank you for the update.

Please, send me a copy of the document that has data in the places you wish to have data.

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago

http://wikisend.com/download/324662/Orl1 Mechanics Work.xlsm


 


Orl1 Mechanics Work.xlsm


 


as soon as you run the macro the last steps are to clear all these contents but if you go into the po file it created you can get the info back from there

Customer reply replied 4 years ago


If its a fix of using a different formula to input the cells on the vehicle repair order form instead of the if statement tell me how to word it or give me a example and I can type it all in " the if statement was the only way I new to get the values I needed"

Thank you for much for your patience.

How does this look? http://wikisend.com/download/128772/Fixed.xlsm

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


The PO side is still working good but the RO is only supposed to save that one sheet not the whole workbook, I have to email that file to corporate and they only want the one sheet

Customer reply replied 4 years ago


I tried running it again and when I hit the button on the bottom of the page it still does the same thing it saves the sheet only but all the info on it is missing

Customer reply replied 4 years ago


from what it looks like to me is when the page is created originally it is linked with the po req page but when they get split up and saved the link is broke and none of the values stay with the sheet so we need to figure out how to save those fields as text instead of results from a formula so no link is needed?


 


I'm guessing but does that sound close?


Thank you Ken.

Here is one that works for sure: http://wikisend.com/download/893784/Fixed Again.xlsm

Please, let me know how that looks.
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago

nope


it still don't keep any of the info it saves it by the name correctly but like before it will not keep the info on the separately saved ro sheet


Sorry to be a pain I know this is a hard one I have been trying different thing for a week that's why I had to call on the pro's



Here it is: http://wikisend.com/download/615538/Last One.xlsm

For some reason, the wrong macro was assigned to the button.
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago

It works except the new saved ro file is missing the logo in the top left corner and can we have only one sheet we don't need sheet 2 or 3 showing

Customer reply replied 4 years ago

Are you still there?

I have run out of ideas.

For this reason, I am opting out of the question and allowing another expert the chance to help.

I wish you luck,
- Jason
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Sorry to hear that you were so close I thought you had it, well thanks for trying I really appreciate it

Michael Hannigan
Michael Hannigan, Office Specialist
Category: Microsoft Office
Satisfied Customers: 11,884
Experience: 25+ Years Experience in Computers and Electronics. Microsoft Certified MCSE, MCDBA, MCP, Microsoft Partner
Verified

Hello again. It's Mike. I saw that your previous Expert left the conversation. I have the change here that will copy the logo. As far as the other worksheets to which you refer, I don't see any additional worksheets once the macro completes.

 

Here's the change:

' saves poreqform with the file name taken from cell k69
Sheets("POREQFORM").Select
Sheets("POREQFORM").Copy
thisfile = Range("k69").Value
ActiveSheet.Shapes.Range(Array("Picture 4")).Select
Selection.Copy

ActiveWorkbook.SaveAs Filename:="D:\new sws folder\maintenance\poreq\" & thisfile
ActiveWorkbook.Close


Sheets("Vehicle Repair Order").Select
Set ws = ActiveSheet
Set wb = Workbooks.Add
ActiveSheet.Paste
ws.Cells.Copy
ActiveSheet.Cells.PasteSpecial Paste:=xlValues
ActiveSheet.Cells.PasteSpecial Paste:=xlFormats

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Its almost there


The logo needs to be over 3 cells to the right and 2 cells down also the file that is saved is to large it needs to be 1 page this one prints as 4

I was having a problem - the macro didn't seem to be working as you described that you needed it to.

As for the four pages - that's because the original sheet is formatted that way - you'll have to change it there. Here's a workbook with an updated macro.

New Excel File
Michael Hannigan
Michael Hannigan, Office Specialist
Category: Microsoft Office
Satisfied Customers: 11,884
Experience: 25+ Years Experience in Computers and Electronics. Microsoft Certified MCSE, MCDBA, MCP, Microsoft Partner
Verified
Michael Hannigan and 87 other Microsoft Office Specialists are ready to help you
Ask your own question now
Customer reply replied 4 years ago


It wouldn't let me download the file I tried to open as a excel sheet and its asking for a id and password


 


while waiting I started over and was able to get it to do what I wanted but the macro is huge im sure I didn't do it the most efficient way and really would like to see the way you did it (This is how im learning).


I have 1 more question posted could you help with this one also its almost like the last one you did except for printing the file it needs to be saved in another location


I hope im not to much trouble I am a novice at this but learning more each day


Thanks

Ask Michael Hannigan Your Own Question
Michael Hannigan
Michael Hannigan
Michael Hannigan, Office Specialist
Category: Microsoft Office
Satisfied Customers: 11,884
11,884 Satisfied Customers
Experience: 25+ Years Experience in Computers and Electronics. Microsoft Certified MCSE, MCDBA, MCP, Microsoft Partner

Michael Hannigan is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

jstinehelfer

jstinehelfer

Information Systems Manager

36 satisfied customers

A+ Comptia Certified computer repair

JasonJames122

JasonJames122

Computer Enthusiast

0 satisfied customers

I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

Jess M.

Jess M.

Computer Support Specialist

701 satisfied customers

Computer Software Specialist for more than 10 years

The-PC-Guy

The-PC-Guy

Computer Manager

588 satisfied customers

20 years experience providing remote computer support

James K.

James K.

Consultant

260 satisfied customers

Technical Director of IT Company

IT Miro

IT Miro

Computer Scientist

157 satisfied customers

Bachelor's Degree in Information Technology, Microsoft Certified Professional

Chris L.

Chris L.

Support Specialist

147 satisfied customers

Certified Expert with over 10 years experience.

< Previous | Next >

Related Microsoft Office Questions
I am told that my contact for Microsoft Office has expired.
I am told that my contact for Microsoft Office has expired. I enjoy Office as it is, an element included in my iMac purchase as "Office for Mac". I believe that this lies in a lasting agreement that a… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
Thank you for asking. I am using MacOS 10.13 with MS Word
Thank you for asking. I am using MacOS 10.13 with MS Word for Mac 15.41 and keep getting this message: "You cannot save while the file is in use by another process. Try saving the file with a new name… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
My userid has been locked up and I need to install a
my userid has been locked up and I need to install a Microsoft Office … read more
Kris R
Kris R
IT Manager
Computing
2,648 satisfied customers
I am finishing work on a large textbook and I find I cannot
I am finishing work on a large textbook and I find I cannot open my word documents.It says I do not have access to them. This is really frightening!! I need help. … read more
RussellA
RussellA
Solutions Architect
Bachelor\u0027s Degree
123 satisfied customers
H, Pearl. I can't log in to my office 365 account. Office
H, Pearl. I can't log in to my office 365 account. … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I can't recover a really important document that I was
I can't recover a really important document that I was working on … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I'm having trouble with creating an automatic table of
I'm having trouble with creating an automatic table of contents in Word. I think it has something to do with formatting in the document. … read more
Kris R
Kris R
IT Manager
Computing
2,648 satisfied customers
There was an update today and since I did it I can't open
There was an update today and since I did it I can't open Word. There was one for PowerPoint and Excel and they are all fine … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
When I type an e mail to a particular person, how do I
When I type an e mail to a particular person, how do I include multiple names recipients . … read more
Jess M.
Jess M.
Computer Support Specialist
Bachelor's Degree
701 satisfied customers
I have a document on one drive that wont open because the
I have a document on one drive that wont open because the file is corrupted. How can I open the document. It represents a weeks work. Would it help to use a different computer? … read more
Kris R
Kris R
IT Manager
Computing
2,648 satisfied customers
I have two cars a Hummer & Maserati I was able to access the
I have two cars a Hummer & Maserati I was able to access the Hummer, now I would like to use it on the Marz how do I do it? … read more
Kris R
Kris R
IT Manager
Computing
2,648 satisfied customers
I wrote a book and its now being published. There are many
I wrote a book and its now being published. There are many hard marks in the text which my publisher wants fixed. These occurred when i used space and enter when i shouldnt have. Iv corrected my inden… read more
George Sibiya
George Sibiya
PhD
216 satisfied customers
I have been trying to activiate or reactivate Windows 10 for
I have been trying to activiate or reactivate Windows 10 for this year. I messed up in the beginning by putting in the wrong account name. Have not been able to recover from this. I have gotten a new … read more
Bryan
Bryan
IT Consultant
8,751 satisfied customers
How do I move folders from MS Office 2013 on one PC to MS
How do I move folders from MS Office 2013 on one PC to MS 365 Personal on another PC … read more
PC_Wizzard
PC_Wizzard
IT Technician
38 satisfied customers
I downloaded Microsoft Office 365 on a different laptop. I
I downloaded Microsoft Office 365 on a different laptop. I was not able to activate it. I need to move it to a different laptop. Do I need to activate it on the other laptop 1st? … read more
John Lohr
John Lohr
Owner / Technology Specialist
Teaching Certification
504 satisfied customers
I was forced to reinstall office 2007 and now opening Excel,
I was forced to reinstall office 2007 and now opening Excel, Word, and PowerPoint I get the following: srdole32.tib with no comment as to what it is. … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I just downloaded outlook 2016 but cannot open it. I get the
I just downloaded outlook 2016 but cannot open it. I get the following message: "Cannot start Microsoft Outlook. Cannot open the outlook window. The set of folders cannot be opened. The outlook data f… read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
953 satisfied customers
My laptop crashed with the last Windows 10 update. I had to
My laptop crashed with the last Windows 10 update. I had to buy a new laptop, but I need to recover my Microsoft 365 account. My contact information was on my old laptop. How do I recover my files? I … read more
Michelle
Michelle
Manager operations
Bachelor\u0027s Degree
1,275 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x