Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a macro that accesses some Access queries and refreshes information in
my Excel worksheet. The queries work and the data properly refreshes the data in my workbook. I wanted to then have the macro paste some of the information in certain cells. I created a macro (Macro2) that grabs the cells and pastes it into the spreadsheet. This works fine. I created Macro2 so I would not have to figure out the code and I could just paste it into my original macro. However, when I take the same code from Macro2 and just append it to the original macro, the paste does not update the cells. I can see the orginal macro goes through all the steps (as pasted from Macro2) but the cells don't get updated. When I run Macro2 the cells get updated (copied and pasted) from the data I imported from Access. I'm stumped, this should work. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Post your code...
-- HTH... Jim Thomlinson "JeffH" wrote: I have a macro that accesses some Access queries and refreshes information in my Excel worksheet. The queries work and the data properly refreshes the data in my workbook. I wanted to then have the macro paste some of the information in certain cells. I created a macro (Macro2) that grabs the cells and pastes it into the spreadsheet. This works fine. I created Macro2 so I would not have to figure out the code and I could just paste it into my original macro. However, when I take the same code from Macro2 and just append it to the original macro, the paste does not update the cells. I can see the orginal macro goes through all the steps (as pasted from Macro2) but the cells don't get updated. When I run Macro2 the cells get updated (copied and pasted) from the data I imported from Access. I'm stumped, this should work. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003/2007 paste special values shows bizarre results | Excel Worksheet Functions | |||
using macro to copy and paste filtered results, what if blank? | Excel Worksheet Functions | |||
Paste results consecutively within column (based off other worksheet) | Excel Worksheet Functions | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) |