Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2023, 12:59 AM
dh48 dh48 is offline Macro doesn't work Windows 11 Macro doesn't work Office 2007
Novice
Macro doesn't work
 
Join Date: May 2023
Posts: 4
dh48 is on a distinguished road
Default Macro doesn't work

Hello (I'm German),




I have a Workbook with a Sheet named Daten. On this Sheet I have a Cell named AVGVerbrauch.

And this is my Macro in the Sheet Calculate:


Private Sub Worksheet_Calculate()
Call SaveSetting("Benzinstatistik", "Verbrauch", "Euro100km", AVGVerbrauch)
End Sub


The AVGVerbrauch is the cell Daten!$F$75 on Sheet Daten.


The problem is, when I use this function call the AVGVerbrauch shows always NULL and not the real value of 7,22 of the Cell.


What is wrong?


Regards - Dietrich
Reply With Quote
  #2  
Old 05-16-2023, 01:19 AM
ArviLaanemets ArviLaanemets is offline Macro doesn't work Windows 8 Macro doesn't work Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Call SaveSetting("Benzinstatistik", "Verbrauch", "Euro100km", [AVGVerbrauch])

Currently you are referring to variable AVGVerbrauch, which probably isn't even defined!
Reply With Quote
  #3  
Old 05-16-2023, 02:43 AM
dh48 dh48 is offline Macro doesn't work Windows 11 Macro doesn't work Office 2007
Novice
Macro doesn't work
 
Join Date: May 2023
Posts: 4
dh48 is on a distinguished road
Default

Thank you very much!!! It works!
Regards - Dietrich
Reply With Quote
Reply

Tags
macro named cell value



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell check macro within macro button field doesn't work in one document samuelle Word VBA 0 07-20-2016 02:27 AM
SaveAs Doesn't work royersebastien Word VBA 0 03-23-2016 01:29 AM
SHIFT+END doesn't work derohanes Excel 2 09-28-2015 09:31 AM
Macro doesn't work HelpViewer doesn't work dherr Office 1 03-27-2015 07:44 AM
CNTL+X doesn't work ACA Office 3 09-19-2011 10:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:36 AM.


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