最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

excel - After target change - Stack Overflow

programmeradmin4浏览0评论

I have an Excel workbook with 1 active sheet, another one is very hidden. I have a userform which fills the labels from the title row in the visible sheet. Sometimes the title row happend to be overwritten by the user's inputs, couldn't find the reason.

To solve the problem I created a button to reset the titles in the visible Excel sheet - the titles were copied from the hidden sheet.

When the users change the titles how can I make sure that the changes are also written to the hidden page?

I think I would have to get the newly entered value and write it to the hidden sheet, but how can I get hold of the new value?

If Not Intersect(Target, Range("A3:Y3")) Is Nothing Then
    intRow = 1
    intColumn = Target.Row  
    strNewValue = Target          
End If

strNewValue gives me the old value, not the new one.

发布评论

评论列表(0)

  1. 暂无评论