After the Form is done

Asevens

New Member
Joined
Mar 17, 2015
Messages
28
So I have my userform set up and it transposes data the way I want it to. Now, I am trying to figure out how to make the rest of my data show up and THEN copy the worksheet within the workbook to a sequentially numbered worksheet which is then displayed for manual editing and printing.
*Edit* When copying the worksheet I need to only copy values not formulas AND i need to find a way to not carry over the userform initialise button on the actual worksheet.

I also need help with creating a second macro that will be activated based off check and option buttons which would print off the corresponding documents.

I may be asking too much but I am swimming in the deep end of VBA and I still have my floaties on.
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
.
To create the new sheet and copy data to it, paste this macro into a Routine Module:

Code:
Option Explicit


Sub cpypste2()
On Error Resume Next
Application.ScreenUpdating = False
    Sheets("Sheet1").Range("A1:F35").Copy                           '<-- adjust copy range here
    Sheets.Add After:=Sheets(Sheets.Count)                          '<-- creates new sheet
    Range("A1:F35").Value = Sheets("Sheet1").Range("A1:F35").Value
    Selection.Columns.AutoFit
    Selection.Rows.AutoFit
    Columns("A").ColumnWidth = 9.86
    
    Sheets(Sheets.Count).Name = Sheets(Sheets.Count) + 1
    
    Sheets(Sheets.Count).Select
    Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub

Need more info. regarding the printing / checkboxes, etc.
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,875
Members
449,267
Latest member
ajaykosuri

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