LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Bryan Hessey
 
Posts: n/a
Default


I take it from your reply that you are not familiar with VBA code, which
can make it 'push'

Try this simple test:

In a test workbook, put the letter G in cell A1 and a monthly figure in
cells A10 and B10

In your Excel, click on View, Toolbars and tick Control Toolbox

The first icon is 'Edit Mode' (when you click, it becomes 'Exit Edit
Mode')

In Edit mode, click on the Button icon on the same bar, then click into
a cell where you want the button to be (it is moveable later)

Rightmouse on this button, and select View Code, and you will be taken
to the code in the VB editor (where your macros are stored etc)

put the code

cn = Range("A1").value
Range("Sheet2!" & cn & "10") = Range("a10").Value
Range("Sheet2!" & cn & "11") = Range("b10").Value

into that, and close and Exit Edit Mode

in A1 put the column name that you want to save to, then click the
button.

Your figures are moved.

Change the A1 letter to any column and press button again, figures are
copied.

That should provide what you asked for, and you can set the letter (in
A1 or elsewhere, it's collected in the first line of code) by any means
you wish, ie A1 can be the result of a formula.
A10 and B10 are just two test cells, you will need to adjust the names
to suit your own needs, but let me know if you have troubles.

in Edit Mode, the Properties of the button include BackColour and
Caption which can be set to your preferences.








Inneed Wrote:
Thanks Brian,

I can make it a "pull" system but I want to keep the monthly column of
data under that particular month in the annual sheet. Because I only
have the 1 column that changes in the other sheet.

The only way I can think of is to copy the whole sheet and pastespecial
"values" but then I would lose all the "pull" formula's. I just need a
way to "lock" the column in place (probably by pressing a button,
however I want to stay away from copying and pasting as I will lose
formula's and I need the spreadsheet next year).

Thanks again.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=396035

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically pasting worksheet data to new worksheet with formulas COntactJason Excel Worksheet Functions 0 August 10th 05 08:22 PM
How do I copy a spreadsheet, keeping the formulas but not the #s mdeanscpa Excel Discussion (Misc queries) 1 July 27th 05 08:53 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
saving dbf file without losing data govworker Excel Discussion (Misc queries) 0 February 7th 05 11:27 PM
Formulas in source data Ken Charts and Charting in Excel 3 December 1st 04 05:43 PM


All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"