VBA code to generate VBA code

Elemental

Board Regular
Joined
Jul 13, 2002
Messages
110
:biggrin:

i was thinking of making a VBA button that selects data on a sheet and copies just the values to another sheet( range from A1 to E100 ), but on the newly created sheet, i wanted to move the sheet to the end of the list, generate a new button on that sheet, and setup the code/properties for it to clear just the data on that temporary sheet

of course i could have a print button for that sheet too, but that's not the hard part

:)

/////////////////////////////////
Private Sub MakeCopy_Click()

' Mysterious Code

End Sub
/////////////////////////////////

thanks ppl
 
> do you guys have day jobs or what's the deal?

Speaking solely to Gregor: the answer to that lies in the last words of the last [listed :)] song of Abbey Road (which was the "last" Beatle album). The answer is in The End.

More than once in a while, it also generates a "thank you," after I see an enormous amount of uncompensated time and thought poured into a reply. In particular, Ivan will always be an "owee" rather an "ower" in the scorecard of life - which ain't a bad place to be :biggrin:
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,558
Messages
6,125,511
Members
449,236
Latest member
Afua

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