![]() |
VBA Copy & Paste_Pt II
Just to clarify what I am trying to do:
On sheet1 in cell A1, I want to put in a currency value. Sheet2 has dates in column A formatted as Jul-04,Aug-04, Sep-04 and so on. You were right. There is not a two column range but a named range of those dates from A1:A160. It covers dates until year 2015. The named range is "date". In cell B1 on sheet1, I have =NOW() When I enter a value in A1 on sheet1 and press a command buttton, I want the code to cut the value from A1 and paste it 4 columns over from the date range in the appropriate row based on today's date. I can derive where the value should be pasted using the formula =ADDRESS(MATCH(B1,sheet2!Date,1),4) The things is, of course, that as far as I can see, it must be done with VBA. |
VBA Copy & Paste_Pt II
This post is not very clear. It seems to rely on prior knowledge of a
previous post. Can you expand? -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Jim McKillen" wrote in message news:tRijc.44024$w96.3546826@attbi_s54... Just to clarify what I am trying to do: On sheet1 in cell A1, I want to put in a currency value. Sheet2 has dates in column A formatted as Jul-04,Aug-04, Sep-04 and so on. You were right. There is not a two column range but a named range of those dates from A1:A160. It covers dates until year 2015. The named range is "date". In cell B1 on sheet1, I have =NOW() When I enter a value in A1 on sheet1 and press a command buttton, I want the code to cut the value from A1 and paste it 4 columns over from the date range in the appropriate row based on today's date. I can derive where the value should be pasted using the formula =ADDRESS(MATCH(B1,sheet2!Date,1),4) The things is, of course, that as far as I can see, it must be done with VBA. |
All times are GMT +1. The time now is 08:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com