Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
In a cell I have a number, which can change. Say it was 75. I then want to copy the value off one sheet in, say cell A1, and paste it into cell G75 on another sheet. I'd like to be able to do this with a macro, so that if the number 75 changes to 30, it will copy cell A1 into cell G30 instead. Is this possible? Thanks, Richard |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 29 Dec 2008 08:15:01 -0800, Richard_123
wrote: Hello, In a cell I have a number, which can change. Say it was 75. I then want to copy the value off one sheet in, say cell A1, and paste it into cell G75 on another sheet. I'd like to be able to do this with a macro, so that if the number 75 changes to 30, it will copy cell A1 into cell G30 instead. Is this possible? Thanks, Richard Try this macro: Sub doit() Worksheets("Sheet2").Range("G" & Worksheets("Sheet1").Range("B1")) = Worksheets("Sheet1").Range("A1") End Sub Cell B1 on Sheet1 is the cell with your number that can change. Hope this helps / Lars-Åke |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif number is greater than a number but less than another number | Excel Discussion (Misc queries) | |||
How can I click on a telephone number in an Excel 2002 spreadsheet, and have the number dialed? | Excel Discussion (Misc queries) | |||
How to calculate number of occurencies of a specific number number | Excel Discussion (Misc queries) | |||
find an exact number in a different sheet and use the cell containing the number to output information | Excel Programming | |||
Rounding a number to a multiple quantity that adds to a fixed total number | Excel Worksheet Functions |