Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Macro won't paste results

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Macro won't paste results

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
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
Excel 2003/2007 paste special values shows bizarre results TeeDub Excel Worksheet Functions 11 April 23rd 08 12:03 AM
using macro to copy and paste filtered results, what if blank? priceyindevon Excel Worksheet Functions 2 December 14th 06 10:09 AM
Paste results consecutively within column (based off other worksheet) [email protected] Excel Worksheet Functions 5 March 13th 06 11:54 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


All times are GMT +1. The time now is 09:23 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"