ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy values in a range to memory (https://www.excelbanter.com/excel-programming/400749-copy-values-range-memory.html)

rchan11

Copy values in a range to memory
 
Hi,

I was wondering how I could go about copying a range's values to memory.
I'm creating an audit system where I need to capture the old values and the
new values upon a change. A delete of multiple cells doesn't seem to be
captured.

Can you use 2-D arrays in Excel's VBScript?

Thanks,
Ryan

rchan11

Copy values in a range to memory
 
nevermind...I got it ;)

ReDim OldValueArray(1 To Target.Rows.Count, 1 To Target.Columns.Count)

"rchan11" wrote:

Hi,

I was wondering how I could go about copying a range's values to memory.
I'm creating an audit system where I need to capture the old values and the
new values upon a change. A delete of multiple cells doesn't seem to be
captured.

Can you use 2-D arrays in Excel's VBScript?

Thanks,
Ryan



All times are GMT +1. The time now is 10:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com