简体   繁体   中英

VBA Error in Excel Formula

What's wrong with this code piece?

Target.Validation.Formula1 = ActiveCell.Offset(0, -1).Formula

Sorry, i'm newbie in excel vba

The property Validation.Formula1 is read-only and cannot be written to. See here: http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.validation.formula1.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM