• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • SALE 20% Off All Courses
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Find what causes vba to trigger|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Find what causes vba to trigger|VBA & Macros|Excel Forum|My Online Training Hub
                    BLACK FRIDAY SALE 20% OFF ALL COURSES
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosFind what causes vba to trigger
sp_PrintTopic sp_TopicIcon
Find what causes vba to trigger
Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 59
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
1
July 9, 2020 - 10:56 pm
sp_Permalink sp_Print

Hi,

I have a speadsheet that I made a few years ago and now going to use for a different client however when I try to change a cell to reference another (i.e. in cell E10 type =E1) instead of getting the date returned that is in E1 I get "Jan2" and the formula disappears.

I have checked vba for any subs I might have put in that fire from worksheet change events  but can't see anything that would do that

 

Is there anyway I can see what subs are being triggered and whats triggering them?

 

regards

John

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1563
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
July 9, 2020 - 11:05 pm
sp_Permalink sp_Print

Hi John,

Please provide your workbook when asking a qs like this.  I can't look at the code modules or the sheet contents to answer you properly.

Maybe E10 is formatted to just display jan2?  I don't know what date is in E1.

Regards

Phil

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 723
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
3
July 10, 2020 - 6:57 pm
sp_Permalink sp_Print

Do you have any workbooks loaded that have userforms with controls linked directly to cells (using controlsource property)? That could cause exactly what you describe without any code running.

Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 59
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
4
July 13, 2020 - 6:30 pm
sp_Permalink sp_Print

Hi Phil,

I thought there might be a watch window or something I could set to trace dependants etc. 

Its just formatted to "mmm"

@velouria I just opened it alone and it still does the same.

 

I have added the spreadsheet its Schedule 2020 sheet any passwords have been set to "" or "password"

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 723
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
5
July 13, 2020 - 7:47 pm
sp_Permalink sp_Print

Row 10 is the top row of your table, and you can't use formulas in header cells, which is why they are disappearing. I'm not quite sure where it is getting Jan from though.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1563
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
6
July 13, 2020 - 7:59 pm
sp_Permalink sp_Print sp_EditHistory

EDIT: Velouria posted while I was looking at the workbook 🙂

 

Hi John,

On the 'Schedule 2020' sheet, cell E10 is part of the header row for the table 'Table12'.

Table header rows can't contain formulas.  So when you try to enter something like =E1 it gets converted to static text.

I'm not sure how it works out what to convert to when you feed it a date, but as you already have a header Jan, it's giving you Jan2.  You'll get Jan3 in F10 etc.

Regards

Phil

Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 59
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
7
July 14, 2020 - 12:42 am
sp_Permalink sp_Print

Doh!!!

I didnt even realise I had made it a tableEmbarassed

 

Thanks guys

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Timothy, Alan Sidman, Jill Niemeier, Pam Baillie, Jessica, Lila Huron-Albinger, Todd Heckman
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Catalin Bombea: 1864
SunnyKow: 1432
Anders Sehlstedt: 886
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 241
Hans Hallebeek: 227
Jessica Stewart: 219
A.Maurizio: 213
Newest Members:
Kelvin H
Anya Ledwith
Mark Melvin
Stuart McInnes
Naji Moukhachen
Robert Mason
Debora Cohen
Kris Whitaker
Rajesh Jawajala
Todd Heckman
Forum Stats:
Groups: 3
Forums: 24
Topics: 6641
Posts: 29140

 

Member Stats:
Guest Posters: 49
Members: 33096
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.