Sheet showing another sheet over the top??

dillyoh

New Member
Joined
Aug 22, 2018
Messages
12
I have a dashboard type workbook that has buttons I press which I use to navigate between sheets.

On the main dashboard there are a few numbers which I have used vbscript to type.

For some reason when I navigate to other sheets these numbers show through from the main dashboard sheet.

I dont know how to add a screenshot in here.

Some of the code where it adds data to the main Dashboard sheet (which is what's showing through on the other sheets)

For some reason all seems fine switching between sheets but as soon as I make an edit on the sheet some of this data from the Dashboard sheet seems to come through. If I alt-tab to another application and come back it corrects itself.

Code:
Dim PolDate    PolDate = Worksheets("PoliceVetsDue").Range("A2").Value
  Sheets("Dashboard").Select
  Range("M40").Select
        ActiveCell.FormulaR1C1 = PolDate
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I'm guessing using selection is your problem. Trial....
Code:
Sheets("Dashboard").Range("M40").FormulaR1C1 = Worksheets("PoliceVetsDue").Range("A2").Value
HTH. Dave
Note: Using .FormulaR1C1 requires that a formula be passed to the range. It should look something like....
.FormulaR1C1 = "=(D1 + C1)" as an example
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,312
Members
449,152
Latest member
PressEscape

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