Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Excel Vba Macro Paste As Value On Cell Change?


No replies to this topic

#1 Jonnyabc

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 125 posts
  • Gender:Male
  • Location:Indianapolis, IN
  • myCENT:18.37

Posted 27 December 2010 - 04:46 PM

I need a solution to create an Excel 2010 Macro to copy the value =NOW() and paste as value from and to a relative cell in the same row (6 columns to the right) whenever a cell value is changed. Basically, whenever I edit the cell, it'll create a fixed timestamp off to the right.

I have researched Worksheet_Change() and the Application.SheetCalculate = SubName with little sucess. Either I am pasting it into the wrong part of VBA (but I've already tried Sheet/Workbook/Module) or I am missing the right code to make my Sub start on the event trigger, but it does not want to work whenever I use it. If I can get it to at least run, I could figure out the rest...

I've been programming in Excel VBA to create Excel functions for a bit of time now, but making an automated macro seems to be a completely different syntax since I am now working with cells, not just producing a value from a formula within the individual cell.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users