PC Review


Reply
Thread Tools Rate Thread

Data snapshot between worksheets.

 
 
S Cho
Guest
Posts: n/a
 
      5th Sep 2004
Hello, thanks in advance for your help!

The Problem: I would like to know how to have data from one work sheet
placed into another worksheet after pressing a "button" of some sort.

The Specifics: Worksheet A has multiple cells calculating the various
costs of an item. These costs change when I change the item. How do
I take a "snapshot" of these cells and have them display on Worksheet
B's columns, so that I can begin making a separate inventory list
detailing each item and its associated costs? Is there any way to
make a "button" that initiates the snapshot as well?

Thanks,

Steve
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      5th Sep 2004
This might get you started:

Option Explicit
Option Base 0
Sub testme01()

Dim historyWks As Worksheet
Dim curWks As Worksheet
Dim destRow As Long
Dim iCtr As Long

Dim myAddresses As Variant

myAddresses = Array("A1", "B1", "D1", "F1", "H1")

Set curWks = Worksheets("WorkhseetA")
Set historyWks = Worksheets("WorksheetB")

With historyWks
destRow = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0).Row
End With

With curWks
For iCtr = LBound(myAddresses) To UBound(myAddresses)
historyWks.Cells(destRow, 1 + iCtr).Value _
= .Range(myAddresses(iCtr)).Value
.Range(myAddresses(iCtr)).ClearContents
Next iCtr
End With

End Sub

Change the worksheet names and fix the addresses on the Input sheet.

S Cho wrote:
>
> Hello, thanks in advance for your help!
>
> The Problem: I would like to know how to have data from one work sheet
> placed into another worksheet after pressing a "button" of some sort.
>
> The Specifics: Worksheet A has multiple cells calculating the various
> costs of an item. These costs change when I change the item. How do
> I take a "snapshot" of these cells and have them display on Worksheet
> B's columns, so that I can begin making a separate inventory list
> detailing each item and its associated costs? Is there any way to
> make a "button" that initiates the snapshot as well?
>
> Thanks,
>
> Steve


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
S Cho
Guest
Posts: n/a
 
      7th Sep 2004
Thanks Dave, that did the trick!

Steve

Dave Peterson <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> This might get you started:
>
> Option Explicit
> Option Base 0
> Sub testme01()
>
> Dim historyWks As Worksheet
> Dim curWks As Worksheet
> Dim destRow As Long
> Dim iCtr As Long
>
> Dim myAddresses As Variant
>
> myAddresses = Array("A1", "B1", "D1", "F1", "H1")
>
> Set curWks = Worksheets("WorkhseetA")
> Set historyWks = Worksheets("WorksheetB")
>
> With historyWks
> destRow = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0).Row
> End With
>
> With curWks
> For iCtr = LBound(myAddresses) To UBound(myAddresses)
> historyWks.Cells(destRow, 1 + iCtr).Value _
> = .Range(myAddresses(iCtr)).Value
> .Range(myAddresses(iCtr)).ClearContents
> Next iCtr
> End With
>
> End Sub
>
> Change the worksheet names and fix the addresses on the Input sheet.
>
> S Cho wrote:
> >
> > Hello, thanks in advance for your help!
> >
> > The Problem: I would like to know how to have data from one work sheet
> > placed into another worksheet after pressing a "button" of some sort.
> >
> > The Specifics: Worksheet A has multiple cells calculating the various
> > costs of an item. These costs change when I change the item. How do
> > I take a "snapshot" of these cells and have them display on Worksheet
> > B's columns, so that I can begin making a separate inventory list
> > detailing each item and its associated costs? Is there any way to
> > make a "button" that initiates the snapshot as well?
> >
> > Thanks,
> >
> > Steve

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data snapshot between worksheets. S Cho Microsoft Excel Misc 2 7th Sep 2004 04:19 AM
Data snapshot between worksheets. S Cho Microsoft Excel Worksheet Functions 2 7th Sep 2004 04:19 AM
Save each page as a seperate Snapshot file when Exporting to Snapshot Format Ed Dobbin Microsoft Access External Data 0 14th May 2004 01:12 PM
refer to data on multiple worksheets using hlookup/look up data on many worksheets? qiong Microsoft Excel Misc 2 24th Dec 2003 12:22 AM
Viewing Snapshot Files with Snapshot Viewer Control on Excel Userform...How? Shuffs Microsoft Excel Programming 0 19th Sep 2003 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:24 AM.