MACRO Works but Quick Question on Editing the Macro Page

JMcAnarney

New Member
Joined
Nov 2, 2021
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Sub JMcAnarney()
Dim Ws As Worksheet, Nws As Worksheet

I have the following MACRO written and it works perfectly:

If Evaluate("isref('Master Summary'!A1)") Then
Set Nws = Sheets("Master Summary")
Else
Set Nws = Sheets.Add(Sheets(1))
Nws.Name = "Master Summary"
End If
For Each Ws In Worksheets
If Ws.Name <> "Master Summary" Then
Nws.Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(14, 20).Value = Ws.Range("L49:AE62").Value
End If
Next Ws
End Sub


My one question is that is it possible when I run this that the output page does not allow me to write any formulas on the page whatsoever. Obiously I can just expand the MACRO range; but is it possible to make these edits on page itself???
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
So the way I have it set-up when I run the MACRO it compiles all the information from 100 different sheets into a new sheet named "Master Summary"
 
Upvote 0
Not necessarily; for example when I run the Macro it looks like this but cells to the right if I were to write a formula using the Macro are not allowing calculation
1639675306232.png
 
Upvote 0
The column seems to be formatted as Text. Change it to General and it should work.
 
Upvote 0
VBA Code:
Nws.Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(14, 20).Value = Ws.Range("L49:AE62").Value

If I interpret your question correctly... In the above line of code, change .Value to .Formula

Cheers,

Tony
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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