Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default macro needed for saving

macro needed for saving multiple sheets into DBF format
I mean for specific areas, libe B5:z66 from sheet2, appendable after b5:f66
I have simulated, but I know how to save xls with one sheet, it works; but
is useless for me. also I have colected the whole sheets in one, specific
wich I want to convert into DBF. Any solution provided hope that will be
usefull; I use office 2003.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default macro needed for saving

Becuase you want to save only specific areas of the workbook and not the
whole workbook, you need to create a new workbook, then copy the data
specific areas of the workbook to the new workbook, and finally do a SAVEAS
to the new workbook in DBF format.

"Steve" wrote:

macro needed for saving multiple sheets into DBF format
I mean for specific areas, libe B5:z66 from sheet2, appendable after b5:f66
I have simulated, but I know how to save xls with one sheet, it works; but
is useless for me. also I have colected the whole sheets in one, specific
wich I want to convert into DBF. Any solution provided hope that will be
usefull; I use office 2003.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default macro needed for saving

In this point is more usefull a macro to save one specific sheet to another
workbook, with a single sheet, and that to dbf. any sugestion?
"
ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs ("C:\...... " can't use with more than
1sheet

I mean for a single macro run to do all the work
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default macro needed for saving


does anyone know how to save JUST ONE SHEET?
the: ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs ("C:\......

doesn't help me
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default macro needed for saving

dim wks as worksheet
set wks = worksheets("somesheetnamehere")
wks.copy 'copies to a new workbook--single sheet
'save the newly created single sheet workbook.
with activeworkbook
.saveas filename:="C:\..."
.close savechanges:=false
end with

Steve wrote:

does anyone know how to save JUST ONE SHEET?
the: ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs ("C:\......

doesn't help me


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default macro needed for saving

I was wandering when DAVE pick on this post..
thank you Dave, I got to try you solution, at the first look it was under my
nose...

"Dave Peterson" wrote:

dim wks as worksheet
set wks = worksheets("somesheetnamehere")
wks.copy 'copies to a new workbook--single sheet
'save the newly created single sheet workbook.
with activeworkbook
.saveas filename:="C:\..."
.close savechanges:=false
end with

Steve wrote:

does anyone know how to save JUST ONE SHEET?
the: ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs ("C:\......

doesn't help me


--

Dave Peterson

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent help needed!!! Saving in Excel 2007 Cazzy123 Excel Discussion (Misc queries) 3 November 4th 09 11:28 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Saving a spreadsheet without saving the Macro tedd13 Excel Programming 7 March 31st 06 02:17 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


All times are GMT +1. The time now is 09:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"