Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-10-2023, 09:15 PM
soroush.kalantari soroush.kalantari is offline Error when assigning a macro to an Excel Chart Sheet Windows 10 Error when assigning a macro to an Excel Chart Sheet Office 2016
Competent Performer
Error when assigning a macro to an Excel Chart Sheet
 
Join Date: Jun 2021
Posts: 124
soroush.kalantari is on a distinguished road
Default Error when assigning a macro to an Excel Chart Sheet


I want to have a macro to assign another macro to a chart that is in an Excel Chart Sheet. To know how to do this, I have recorded a macro. However, recorded macro don’t work when running on a new Chart Sheet and, as the picture attached shows, encounters error at “Selection.OnAction = "test01”. (See the excel attached. the name of the recorded macro is “test02” and the name of the macro I want to assign to chart sheets is “test01".
Can you guide me on this issue?
Recorded macro:
Sub test02()

ActiveChart.ChartArea.Select
Selection.OnAction = "test01"
End Sub
Attached Images
File Type: png error03.PNG (6.5 KB, 13 views)
Attached Files
File Type: xlsm assigningmacrotochartsheet.xlsm (28.2 KB, 5 views)
Reply With Quote
 

Tags
chart sheet



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel data sheet size when opening powerpoint chart Sissy PowerPoint 0 08-15-2019 04:35 AM
Error when assigning a macro to an Excel Chart Sheet Excel Macro: Multiple Search and Post in Excel Sheet andxie Excel Programming 10 05-31-2018 05:21 PM
Error when assigning a macro to an Excel Chart Sheet Error in exporting Google Sheet to Excel cmcmeekin Excel 2 08-03-2016 11:32 AM
Error when assigning a macro to an Excel Chart Sheet How To Open an Macro From 2003 Excel in 2013 Excel Spread Sheet? ADubin Excel Programming 3 02-08-2015 04:57 AM
Error when assigning a macro to an Excel Chart Sheet Excel 2010 Chart SetSourceData 1004 error pocerus Excel Programming 4 10-26-2014 08:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft