Note: The other languages of the website are Google-translated. Back to English
Logáil isteach  \/ 
x
or
x
Cláraigh  \/ 
x

or

Conas gach bileog oibre a easpórtáil agus a shábháil mar leabhar oibre nua ar leithligh in Excel?

Ligean le rá gur mhaith leat bileog oibre amháin nó níos mó a easpórtáil agus a shábháil mar leabhar oibre nua, conas a dhéileálfaidh tú leis? De ghnáth is féidir leat gach bileog oibre a chóipeáil agus a ghreamú de leabhar oibre nua. Ach anseo tugann muid roinnt cleasanna úsáideacha duit chun déileáil leis:

Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua le hordú Bog nó Cóipeáil

Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua le cód VBA

Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua le Kutools for Excel smaoineamh maith3


mboilgeog cheart gorm saighead Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua le hordú Bog nó Cóipeáil

Bain úsáid as an Bog nó Cóipeáil cuideoidh ordú leat bileog oibre amháin nó níos mó a easpórtáil nó a chóipeáil go leabhar oibre nua go tapa.

Céim 1: Roghnaigh ainmneacha na mbileog oibre sa bharra cluaisíní. Is féidir leat iolraí a roghnú le coinneáil síos Ctrl eochair nó aistriú eochair.

Céim 2: Cliceáil ar dheis ar ainm na bileoige oibre, agus cliceáil ar an Bog nó Cóipeáil ón roghchlár comhthéacs.
bileoga onnmhairiúcháin doc 1

Céim 3: In Bog nó Cóipeáil bosca dialóige, roghnaigh an (leabhar nua) mír ón liosta anuas de Bog bileoga roghnaithe chun leabhar a chur in áirithe.

bileoga onnmhairiúcháin doc 2

Céim 4: Ansin cliceáil OK, anois tá tú aistrithe chuig an leabhar oibre nua le bileoga oibre a onnmhairítear nó a chóipeáil, cliceáil Comhad > Sábháil chun an leabhar oibre nua a shábháil.

Nóta: sa Bog nó Cóipeáil bosca dialóige, tá a Cruthaigh cóip rogha. Mura ndéanann tú seiceáil air, bogfaidh sé na bileoga oibre roghnaithe as an mbunleabhar oibre; má dhéantar é a sheiceáil, cóipeálfaidh sé bileoga oibre roghnaithe.


Déan bileoga oibre iolracha a roinnt go tapa i leabhar oibre ar leithligh in Excel

I Microsoft Excel, is féidir leat bileog oibre a shábháil nó a roinnt ó leabhar oibre amháin mar chomhad Excel nua tríd an mbileog oibre seo a chóipeáil agus a ghreamú i leabhar oibre nua. Dealraíonn sé go bhfuil sé trioblóideach, más mian leat gach bileog / bileog oibre de leabhar oibre mór a roinnt mar chomhaid Excel, txt, csv, pdf ar leithligh. Ach le Kutools le haghaidh Excel'S Leabhar Oibre Scoilt fóntais, is féidir leat déileáil leis go tapa.  Cliceáil le haghaidh triail saor in aisce 30 lá le gnéithe iomlána!
leabhar oibre scoilte doc 1
 
Kutools for Excel: le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá.

mboilgeog cheart gorm saighead Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua le cód VBA

Déanfaidh an cód seo a leanas gach bileog oibre infheicthe a easpórtáil i leabhar oibre nua agus sábhálfaidh sé an leabhar oibre le hainm an bhileog bhunaidh i bhfillteán nua-chruthaithe ar an gcosán céanna leis an leabhar oibre gníomhach. Déan na céimeanna seo a leanas le do thoil:

Céim 1: Coinnigh síos an ALT + F11 eochracha, agus osclaíonn sé an Microsoft Visual Basic d’Fheidhmchláir fhuinneog.

Céim 2: Cliceáil Ionsáigh > Modúil, agus greamaigh an macra seo a leanas i bhFuinneog an Mhodúil:

VBA: Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua i bhfillteán nua.

Sub SplitWorkbook()
'Updateby20200806
Dim FileExtStr As String
Dim FileFormatNum As Long
Dim xWs As Worksheet
Dim xWb As Workbook
Dim xNWb As Workbook
Dim FolderName As String
Application.ScreenUpdating = False
Set xWb = Application.ThisWorkbook

DateString = Format(Now, "yyyy-mm-dd hh-mm-ss")
FolderName = xWb.Path & "\" & xWb.Name & " " & DateString

If Val(Application.Version) < 12 Then
    FileExtStr = ".xls": FileFormatNum = -4143
Else
    Select Case xWb.FileFormat
        Case 51:
            FileExtStr = ".xlsx": FileFormatNum = 51
        Case 52:
            If Application.ActiveWorkbook.HasVBProject Then
                FileExtStr = ".xlsm": FileFormatNum = 52
            Else
                FileExtStr = ".xlsx": FileFormatNum = 51
            End If
        Case 56:
            FileExtStr = ".xls": FileFormatNum = 56
        Case Else:
            FileExtStr = ".xlsb": FileFormatNum = 50
        End Select
End If

MkDir FolderName

For Each xWs In xWb.Worksheets
On Error GoTo NErro
    If xWs.Visible = xlSheetVisible Then
    xWs.Select
    xWs.Copy
    xFile = FolderName & "\" & xWs.Name & FileExtStr
    Set xNWb = Application.Workbooks.Item(Application.Workbooks.Count)
    xNWb.SaveAs xFile, FileFormat:=FileFormatNum
    xNWb.Close False, xFile
    End If
NErro:
    xWb.Activate
Next

    MsgBox "You can find the files in " & FolderName
    Application.ScreenUpdating = True
End Sub

Céim 3: Brúigh an F5 eochair chun an cód seo a rith. Agus nochtfaidh bosca pras chun áit na leabhar oibre nua a onnmhairítear a insint duit, agus rinneadh gach ceann de bhileoga oibre an bhunleabhair oibre a onnmhairiú chuig roinnt leabhar oibre ar leithligh nua a d’ainmnigh bileoga bunaidh i bhfillteán sonrach nua. Féach screenshots:

bileoga onnmhairiúcháin doc 7

mboilgeog cheart gorm saighead Bileoga oibre a easpórtáil agus a shábháil mar leabhar oibre nua le Kutools for Excel

Má tá níos mó bileoga oibre agat is gá a shábháil mar leabhar oibre ar leithligh, ní féidir an chéad mhodh a bheith ina rogha mhaith. Agus b’fhéidir go bhfuil an cód VBA rud beag casta do thosaitheoirí Excel. Anseo is féidir leat an Leabhar Oibre Scoilt fóntais de Kutools le haghaidh Excel gach bileog oibre de leabhar oibre amháin a easpórtáil go tapa agus go héasca chun leabhar oibre nua a scaradh.

Kutools le haghaidh Excel, le níos mó ná 300 feidhmeanna úsáideacha, déanann sé do phoist níos éasca. 

Tar éis suiteáil saor in aisce Kutools for Excel, déan mar atá thíos le do thoil:

Céim 1: Cliceáil Kutools Plus > Leabhar Oibre > Leabhar Oibre Scoilt .... Féach an pictiúr:
bileoga onnmhairiúcháin doc 3

Céim 2: Sa Leabhar Oibre Scoilt bosca dialóige, déan mar atá thíos:

bileoga onnmhairiúcháin doc 4
1: seiceáladh ainmneacha uile na mbileog oibre de réir réamhshocraithe, mura dteastaíonn uait cuid de na bileoga oibre a roinnt, is féidir leat iad a dhísheiceáil;


2: Más mian leat scoilt na mbileog oibre i bhfolach nó bán a sheachaint, is féidir leat an Scipeáil bileoga oibre i bhfolach or Scipeáil bileoga oibre bán.);


3: agus freisin is féidir leat a sheiceáil Sonraigh sábháil formáid, agus chun scoilt na mbileog a roghnú ansin sábháil mar chomhad téacs, comhad pdf, nó comhad csv, i bhfoirm defualt, mura seiceálann tú an rogha seo, scoiltfidh sé bileoga agus sábhálfaidh tú mar leabhar oibre iad.

Céim 3: Ansin cliceáil Scoilt cnaipe, agus roghnaigh an fillteán ar mhaith leat na leabhair oibre nua a chur ann. Féach an pictiúr:
bileoga onnmhairiúcháin doc 6

Céim 4: Agus ansin cliceáil OK, ansin gach bileog oibre seiceáilte sa Leabhar Oibre Scoilt déantar bosca dialóige a onnmhairiú agus a shábháil mar leabhar oibre aonair. Ainmnítear gach leabhar oibre nua leis an ainm bunaidh bileog oibre. Féach an pictiúr:
bileoga onnmhairiúcháin doc 5

Cliceáil chun tuilleadh eolais a fháil faoin uirlis Leabhar Oibre Scoilt seo.

mboilgeog cheart gorm saighead Easpórtáil agus sábháil gach bileog mar leabhar oibre nua


Roinn sonraí go tapa i mbileoga oibre iomadúla bunaithe ar cholúin nó sraitheanna seasta in Excel

Má cheaptar go bhfuil bileog oibre agat a bhfuil sonraí aici i gcolúin A go G, tá ainm an díoltóra i gcolún A agus ní mór duit na sonraí seo a roinnt go huathoibríoch i mbileoga oibre iolracha bunaithe ar cholún A sa leabhar oibre céanna agus roinnfear gach díoltóir ina leabhar nua bileog oibre. Kutools le haghaidh Excel'S Dáta Scoilt is féidir le fóntais cabhrú leat sonraí a roinnt go tapa i mbileoga oibre iomadúla bunaithe ar cholún roghnaithe mar atá thíos an seat a thaispeántar in Excel.  Cliceáil le haghaidh trialach saor in aisce 30 lá le feiceáil go hiomlán!
sonraí scoilte doc 2
 
Kutools for Excel: le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá.

Earraí gaolmhara:


Na hUirlisí Táirgiúlachta Oifige is Fearr

Réitíonn Kutools for Excel an chuid is mó de do chuid Fadhbanna, agus Méadaíonn sé do Tháirgiúlacht 80%

  • Athúsáid: Cuir isteach go tapa foirmlí casta, cairteacha agus aon rud a d'úsáid tú roimhe seo; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • Barra Foirmle Super (cuir línte iolracha téacs agus foirmle in eagar go héasca); Leagan Amach Léitheoireachta (líon mór cealla a léamh agus a chur in eagar go héasca); Greamaigh go dtí an Raon Scagtha...
  • Cumaisc Cealla / Sraitheanna / Colúin gan Sonraí a chailleadh; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna / Colúin Dúblacha... Cill Dúblach a Chosc; Déan comparáid idir Ranganna...
  • Roghnaigh Dúblach nó Uathúil Sraitheanna; Roghnaigh Blank Rows (tá na cealla uile folamh); Aimsigh Super agus Fuzzy Aimsigh i go leor Leabhar Oibre; Roghnaigh go randamach ...
  • Cóip Díreach Cealla Il gan tagairt fhoirmle a athrú; Tagairtí Cruthaigh Auto chuig Bileoga Il; Cuir Urchair isteach, Boscaí Seiceála agus go leor eile ...
  • Sliocht Téacs, Cuir Téacs leis, Bain de réir Poist, Bain Spás; Subtotals Paging a chruthú agus a phriontáil; Tiontaigh Idir Ábhar Cealla agus Tráchtanna...
  • Scagaire Super (scéimeanna scagaire a shábháil agus a chur i bhfeidhm ar bhileoga eile); Ard-Sórtáil de réir míosa / seachtaine / lae, minicíocht agus níos mó; Scagaire Speisialta le cló trom, iodálach ...
  • Comhcheangail Leabhair Oibre agus Bileoga Oibre; Cumaisc Táblaí bunaithe ar eochaircholúin; Roinn Sonraí i Ilbhileoga; Baisc Tiontaigh xls, xlsx agus PDF...
  • Níos mó ná 300 gné chumhachtach. Tacaíochtaí Office / Excel 2007-2019 agus 365. Tacaíonn sé le gach teanga. Imscaradh éasca i d’fhiontar nó d’eagraíocht. Gnéithe iomlána triail saor in aisce 30 lá. Ráthaíocht ar ais airgid 60 lá.
cluaisín kte 201905

Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
bun officetab
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    mbtedrick@aol.com · 1 months ago
    I have been using this VBA Code for some time and it worked like a charm until I changed computers.  I have the same version of excel but now I am getting a Run Time Error "76" Path Not found.  Any ideas what could be causing this?  It looks like it is hanging up at MkDir.  Any help you can provide is appreciated.
  • To post as a guest, your comment is unpublished.
    Lisa · 2 months ago
    You are amazing! Thank you so very much!
  • To post as a guest, your comment is unpublished.
    Nadine · 8 months ago
    Thank you so much ! great and useful.
  • To post as a guest, your comment is unpublished.
    Sameer Kuppanath · 10 months ago
    For Each xWs In xWb.Worksheets

    How to do export only selected / grouped sheets to separate excel sheets by using this code.?
  • To post as a guest, your comment is unpublished.
    Issybeee · 1 years ago
    Hi there,

    Keep getting a pop up that says 'compile error, invalid outside procedure' when i try and run the code. Any thoughts? Thanks for all your help.
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Hi, Issybeee, I have update the VBA code in the tutorial, you can try the new one again.
  • To post as a guest, your comment is unpublished.
    Tobias vP · 1 years ago
    For those of you who save macros in your "Personal.XLSB" or XLSTART (I see more questions below related to this), change the line

    Set xWb = Application.ThisWorkbook to

    Set xWB = ActiveWorkbook

    That will make the macro run from the Active Workbook instead and save in a subfolder to that.

  • To post as a guest, your comment is unpublished.
    Diego · 1 years ago
    With the first method, if I hit F5, it opens a pop up window with the function "Go to". My excel is in spanish, im not sure if that is a factor. Any idea on how to fix it?
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      You can directly click the Run button of the Microsoft Visual Basic for Applications window.
  • To post as a guest, your comment is unpublished.
    kerstin · 2 years ago
    Un aporte realmente útil. He probado el módulo con código VBA y funciona a la perfección. Muchas gracias, me has salvado una tarea que me hubiera llevado mucho tiempo con el mover y copiar.
  • To post as a guest, your comment is unpublished.
    SS · 2 years ago
    This is a fantastic piece of work, thanks a lot.
    Do we have any option to select only specific columns in a worksheet to be exported?
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Hi, SS, if you want to export a specific selection as a individual file, this article can help you https://www.extendoffice.com/documents/excel/626-excel-save-selection.html
  • To post as a guest, your comment is unpublished.
    JR · 2 years ago
    For anybody who finds the VBA code is not running as expected, try to change Line 9 to "Set xWb = Application.ActiveWorkbook"

    Otherwise, fantastic! Does exactly as described, and runs fairly quickly
  • To post as a guest, your comment is unpublished.
    Vinod Pingale · 2 years ago
    very nice.... Thanks
  • To post as a guest, your comment is unpublished.
    PK · 2 years ago
    How to convert this macro so that I can save it in my personal workbook and can use to where ever I need it.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Click Developer tab > Record Macro > select Personal Macro Workbook, and give the vba a name.
      Then in Microsoft Visual Basic for Applications window, click VBAProject(PERSONA_XLSB) > Modules > double click Module1, paste the code between Sub() and End Sub, save the code.
      When you want to use the code, click Developer > Macro, choose the code you name.
      • To post as a guest, your comment is unpublished.
        brahim · 1 years ago
        xWs.Copy this methode give me an erreor 1004
  • To post as a guest, your comment is unpublished.
    Sergii · 2 years ago
    February 2019 - after some update Excel silently exits macro right after Application.ActiveWorkbook.SaveAs
    It means, that commands Application.ActiveWorkbook.Close does not run and file stays opened... Could it be fixed? This happened all the machines in our office on several workbooks that were using such kind of Macro.
  • To post as a guest, your comment is unpublished.
    Jenne · 3 years ago
    Do you have the formula to make sure that each excel sheet when saved as a new work book is in total format Comma Delimited .CSV
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Sorry, I have no idea,neither.
  • To post as a guest, your comment is unpublished.
    Jenne · 3 years ago
    Love this and another info you have on splitting data into each worksheet. However I keep getting an error when trying to upload my single reports into my system

    I needed them as a csv file so just changed the last part of the module to .csv I am wondering if I missed something else that should've been changed.

    Thanks a million
  • To post as a guest, your comment is unpublished.
    Ananda · 3 years ago
    what is the use of Worksheet.Save??
    • To post as a guest, your comment is unpublished.
      erick · 3 years ago
      to save the changes made
    • To post as a guest, your comment is unpublished.
      Sunny · 3 years ago
      What? I do not understand.
  • To post as a guest, your comment is unpublished.
    Eunice · 3 years ago
    Hi Sunny,

    Thank you for sharing this code!

    I keep getting this error "Compile Error: Wrong number of arguments or invalid property assignment" at the "format" portion of the following string:

    DateString = format(Now, "yyyy-mm-dd hh-mm-ss")
  • To post as a guest, your comment is unpublished.
    Borges · 3 years ago
    Hi, I use this VBA code all the time to separate commission statements into individual spreadsheets. Is it possible to add a line to the code so it will automatically email the report to each person using outlook?
    • To post as a guest, your comment is unpublished.
      Sunny · 3 years ago
      Soryy I did not know a code can do that, but you can split the workbook first, then apply Kutools for Excel's Create Mailing List and Send Emails utilities to create a mailing list, and then send the reports as attachments to each person. For more detail, please go to visit this article https://www.extendoffice.com/product/kutools-for-excel/excel-create-mailing-list-and-send-email.html
  • To post as a guest, your comment is unpublished.
    dilshadrana46@gmail.com · 3 years ago
    i cant find enterprise toolbar kindly help me
  • To post as a guest, your comment is unpublished.
    dilshadrana46@gmail.com · 3 years ago
    this code cahnge dates in my sheets
    • To post as a guest, your comment is unpublished.
      Sunny · 3 years ago
      What dates have been changed? The modified dates? The Enterprise tab will be appeared after installing Kutools for Excel.
  • To post as a guest, your comment is unpublished.
    Isuru · 4 years ago
    xWs.Copy line comes up with an error in my case with 2016 "Method 'Copy of object'_Worksheet' failed.
    Please suggest me a correction if possible.
    • To post as a guest, your comment is unpublished.
      Sunny · 4 years ago
      Sorry, I have no idea about your problem.
  • To post as a guest, your comment is unpublished.
    Peggy · 4 years ago
    Hi,


    its totally work with the excel 2010.


    however, after i upgraded to Excel 2016, the code doesn't work.


    would you please advise which part should i be revised?
    • To post as a guest, your comment is unpublished.
      Sunny · 4 years ago
      Excuse me, which method you cannot use in Excel 2016? In my condition, all of the methods above do work in Excel 2016 perfectly
  • To post as a guest, your comment is unpublished.
    Omeir · 4 years ago
    Hi the second method worked great. Thank you. I have one question. This method saves each worksheet as a new workbook based on the name of the sheet. Is there anyway to add to the name, for example sheets have a variable name which is currently being saved. Can I add January 2017 or Feb 2017 to the files saved?
    • To post as a guest, your comment is unpublished.
      Sunny · 4 years ago
      Thanks for your leaving message, you can apply Kutools for Excel's Rename Multiple Worksheets to rename every sheets of the workbook firstly, then use one of above methods to export or save the sheets separately as workbook. If you want to know more detail on Rename Multiple Worksheet utility, please visit this:https://www.extendoffice.com/product/kutools-for-excel/batch-rename-excel-worksheets.html
  • To post as a guest, your comment is unpublished.
    Sarfraz · 4 years ago
    Is there a way to change this macro so I can save it in a file in the XLSTART folder but it will run for the active workbook? Everytime I save it in the XLSTART workbook it fails at the DateString = Format(Now, "yyyy-mm-dd hh-mm-ss")line.

    Thanks!
    Sarfraz
  • To post as a guest, your comment is unpublished.
    Aung · 4 years ago
    This is exactly what I needed! Awesome!
  • To post as a guest, your comment is unpublished.
    Rae · 4 years ago
    Hi. I received an error code that says "Compile error: Invalid outside procedure"...help!
  • To post as a guest, your comment is unpublished.
    DAS · 4 years ago
    Your code worked for me... Thanks much!!!
  • To post as a guest, your comment is unpublished.
    Richard · 5 years ago
    Can we also export ALL (300+) sheets to html,
    this will help me a lot, the export to unified text is already helping but I need them in html, or no table borders for the cell differences
  • To post as a guest, your comment is unpublished.
    Madhav Mehendale · 5 years ago
    Out of the above three methods, I found the first method to be quite good having regard to the fact that I am a beginner & my work is not at all of the same magnitude like professionals. My sincere thanks for explaining the steps in simple and lucid manner.
  • To post as a guest, your comment is unpublished.
    Beth G · 5 years ago
    Run time error Method 'Copy of Object' worksheet' failed
  • To post as a guest, your comment is unpublished.
    Beth G · 5 years ago
    xWs.Copy -it is an error in my part what does it mean?
  • To post as a guest, your comment is unpublished.
    Louise · 6 years ago
    Great article - VBA worked first time - perfect
  • To post as a guest, your comment is unpublished.
    Charlie Clarke · 6 years ago
    Unfortunately the VBA code didn't work for me. I had to debug and the issue is with the line:
    Application.ActiveWorkbook.SaveAs xFile, FileFormat:=FileFormatNum

    Any ideas why it didn't work for me?
  • To post as a guest, your comment is unpublished.
    JoaoM · 6 years ago
    Muy buena la aplicacion.

    Es una pena no existir tambien en Español.

    Gracias
  • To post as a guest, your comment is unpublished.
    AC · 6 years ago
    Very Useful thanks! Loved the VBA Code
  • To post as a guest, your comment is unpublished.
    fauzan · 6 years ago
    thank. terimakasih. ini code yang saya butuhkan
  • To post as a guest, your comment is unpublished.
    farfan · 7 years ago
    The VBA codes works like magic, but is there a way for this to be done using VBScript? I'm going nuts trying to meet the requirement from my supervisor.
  • To post as a guest, your comment is unpublished.
    Chris · 7 years ago
    this code is perfect for what i need,
    but could you show code for the exact same process for one sheet rather than the entire workbook?
  • To post as a guest, your comment is unpublished.
    Sam · 7 years ago
    The code is failing at sh.Copy and I cannot figure out why. Any Ideas?
  • To post as a guest, your comment is unpublished.
    Votefor Pedro · 7 years ago
    Thank you. This is esactly what I needed.
  • To post as a guest, your comment is unpublished.
    Phani · 7 years ago
    Hi All,
    Can someone help me on below.
    I need VBA code that can copy only all visible sheets to new workbook and it should not copy macro code to new workbook, save new workbook on desktop with two different cell values in sheet and sheet name as a file name and close the master workbook without saving.
  • To post as a guest, your comment is unpublished.
    Keith · 7 years ago
    Is there a way to change this macro so I can save it in a file in the XLSTART folder but it will run for the active workbook? Everytime I save it in the XLSTART workbook it fails at the DateString = Format(Now, "yyyy-mm-dd hh-mm-ss")line.

    Thanks!
    Keith
  • To post as a guest, your comment is unpublished.
    Rajesh Jayagopi · 7 years ago
    Thanks a lot. Good Job!.
  • To post as a guest, your comment is unpublished.
    Sean · 7 years ago
    Hello I like the code
    Is it possible to just save the new workbook without the date information That is so when I resave the sheets in the previous workbook I will have the option to overwrite the changes rather than create another dated folder? Also but not so important how could I use another name and destination for the destination folder
    Regards
    Sean
  • To post as a guest, your comment is unpublished.
    Nasser · 7 years ago
    thanks alot, works very well and easy.