macro running on current sheet

kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
460
Office Version
  1. 2019
hi all, someone know any problem might happened in my below code?
i record my code to add a new sheet and then refer to my main code on current sheet, but it's doesn't work property
thanks for the advice :)

Sub Macro001()
'
' Macro001 Macro
'


'
Sheets("MASTER").Visible = True
Sheets("Master").Select
Sheets("Master").Copy After:=Sheets(3)
Sheets("MASTER (2)").Select
Sheets("MASTER (2)").Name = "00001"
Sheets("MASTER").Visible = False
Sheets("00001").Select


End Sub
Sub Macro001()
'
' Macro001 Macro
'


'
Range("B4").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(""4000"",Pre-Count!R[-1]C)"



End Sub
****** id="cke_pastebin" style="position: absolute; top: 408px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">End Sub</body>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try this
Code:
activecell.FormulaR1C1 = "=CONCATENATE(""4000"",'Pre-Count'!R[-1]C)"
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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