sheets.add

  1. B

    VBA Code to add a sheet after another errors out...

    I am attempting to add a new sheet after a specific sheet. Best I can remember (it has been some time back), it worked in standalone mode in a short test macro but now that I have integrated the code below with the rest of the macro code, it is not working. It compiles fine but at runtime, it...
  2. M

    Creating new worksheets that are named to be dates

    Hi, I am new to VBA and trying to create a form for a gas station. The form is made so a user can enter sales information and it will calculate month to date totals as pages are added through a new day button at the top. The button should create a new sheet that is named as the next day. The...
  3. M

    Worksheet Connections

    Hi, can you please help me with replacing the worksheet data below to point to the current workbook and worksheet? It won't only be me running the code. Workbooks("Test.xlsm").Connections.Add2 _ "WorksheetConnection_Test.xlsm!Table1", "", _...
  4. O

    Simplify the code, write everything in less than 20 lines

    Hi Everyone, i was wondering if this code Range("A1").EntireRow.Copy Sheets.Add After:=ActiveSheet ActiveSheet.Name = "Pending" ActiveSheet.Paste Cells.EntireColumn.AutoFit Sheets.Add After:=ActiveSheet ActiveSheet.Name = "Closed" Worksheets("Sursa").Select Rows("1:1").Select...
  5. R

    Sheets.add Type:= ?

    What is the correct method to duplicate the last sheet when using Sheets.add Type: (how to finish this statement to have the newsheet be the same as the preceding sheet)

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