Wow I am familiar with saving a workbook to almost any format but when it come to saving a single sheet I'm a noob!!!
Someone please save me hours futile future searching, after hours of already searching by answering how to do something so simple in a macro!
All i want to do is save one sheet (of a workbook that has many sheets) to a specific location in my hard drive.
I was using the
untill i found out it was cutting off characters over a certain length in the cells.Code:Sheets("sheet").Copy ActiveWorkbook.SaveAs Filename:= _ "C:\sheet.xls", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False ActiveWorkbook.Close
does not :
orCode:Worksheets("sheetname").SaveAs Filename:="c:csvip.xls", _ FileFormat:=xlExcel4
I can't seem to get anything to work!Code:Activeworksheet.SaveAs Filename:= _ "C:sheet.xls", _ FileFormat:=xlNormal, CreateBackup:=False
Last edited by prouddad; 04-01-2009 at 10:04 PM. Reason: changed title
Welcome to the forum, prouddad.
Please read the forum rules about thread titles, and then amend yours accordingly.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
Also, when reviewing the rules, please pay attention to the one about cross-posting.
http://www.mrexcel.com/forum/showthread.php?t=381704
sorry didn't realize both boards were the same. Delete this post if you like.
You haven't bothered reading the rules because you would see that cross posting means posting the same question on different forums with a link. You will find this applies to Mr Excel as well!
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
Check out the free Excel Toolbar
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
Code Tags: Make your code easier for us to read
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks