tempwb

  1. B

    only works on second pass

    the code below should copy specified cells from open workbook and paste them into a new workbook and save it with yesterdays date. On first pass it opens a new workbook that doesnt have anything in it. On second pass it works. Any ideas? Option Explicit Private Sub CopytoNewWorkbook() Dim myWB...
  2. R

    Left align the table in Mail using VBA

    Hi Team, I am stuck in one scenario where I want to left align the table in Mail. I did this kind of automation in past and this align perefectly but don’t know what I am doing wrong on below code or can anyone have any other solution. Function RangetoHTML(rng As Range) ' By Ron de Bruin...
  3. S

    VBA Publishing temporary HTML file, run time error 1004

    Hi all Updating someone else's VBA (no longer at company so cannot ask them!) and I keep getting this error, it is one of the very last stages of a long macro that autopopulates a number of emails. I gather the error is likely due to an undefined path/file name but I have not worked much with...
  4. S

    VBA Publishing temporary HTML file, run time error 1004

    Hi all Updating someone else's VBA (no longer at company so cannot ask them!) and I keep getting this error, it is one of the very last stages of a long macro that autopopulates a number of emails. I gather the error is likely due to an undefined path/file name but I have not worked much with...
  5. D

    CSV export changing date format

    Hi all, I am using the below VBA to export a single sheet as a new CSV. In the source file the date is shown as DD-MM-YYYY however when using the below it changes in the CSV file to MM-DD-YYYY? If I don't use the VBA and copy the tab and save as CSV manually it does not do this so I can only...
  6. W

    Why is this code not saving to folder??

    trying to get a worksheet to saveas .csv file to path when they hit macro button. however it opens TempWB and and does not save to path. Can someone tell me what I am missing here Thanks CJ [Code] Sub saveSheetToEQScan() Dim myCSVFileName As String Dim tempWB As Workbook...
  7. L

    Exporting Selected cells to new CSV keeping formatting

    Hi All, im trying to export cells A2:IU20 in sheet 'StaffTB' to a new CSV file. this works perfectly however Columns F and G need to keep the formatting of yyyy/mm/dd hh:mm:ss, i thought i had it fixed by adding .PasteSpecial xlPasteFormats but this exports it with dd/mm/yyyy hh:mm Sub...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top