Actsheets
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 27 articles for 0.302 sec
That portion is a continuation of the previous line: sourcewkbk.worksheets("sandpit").cells.copy _ destination:=targetwkbk.worksheets("Data").range("a1") If this doesn't help, post the current code you're using. Risky Dave wrote: > > Dave, > > Thanks for the help. > I'm just trying your code now, but XL doesn't seem to like the expression > > destination:=TargetWkBk.Worksheets     

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: Dave Peterson
Date: Jan 8, 2008 06:58

Notice that the top version uses a "Set" statement. And I need the parens there. The bottom version just calls workbooks.open and doesn't require them. dk_ wrote: Dave, Thank you very much for your help, your patience, and for the excellent lessons! Very much appreciated! I am curious why the following statement needed () around the file's path?...
Show full article (3.47Kb)
Dave, Thank you very much for your help, your patience, and for the excellent lessons! Very much appreciated! I am curious why the following statement needed () around the file's path?... Set DKWkbk = Workbooks.Open _ (FileName:=myDir & Application.PathSeparator & "a_DK.xls") And in another version of the macro, the ()'s were not needed?... myDir     

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: Dave Peterson
Date: Jun 5, 2007 05:22

For #2. Technically, you don't need to declare your variables. If you don't put "Option Explicit" at the top of the module that contains that procedure, you don't need to declare any variable. I think that this is a very, very bad idea. I think each variable should be declared--and declared as the correct type ("as range", "as workbook", "as worksheet", "as long", "as variant"). But
Show full article (7.56Kb)
Dave, Below are three WORKING versions of the data copy macro... 1. The first is the first that you posted, i.e., a complete re-do of mine; --> ONE macro for ALL workbooks. 2. The second is the "Set ActSheet" modification of my original; ONE macro for ALL workbooks. Q). In this version (#2 below), why did I not need the line?... Dim ActSheet As Worksheet     

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: dk_
Date: Jun 5, 2007 01:02

Glad you got it working, but I don't understand your comments. If you look at the original code that I suggested, there was a line that declared ActSheet. So I think that you made a change (however minor) to that suggested code (or changed your own code???). That's why I asked to see the code that you were currently running. dk_ wrote: Dave, I got ActSheet to work...
Show full article (7.03Kb)
Dave, I got ActSheet to work... 1) I added the line near the top of the macro... Set ActSheet = ActiveSheet 2) Then I changed the line... Windows ("Ben.xls").activate to... ActSheet.Activate and now my original macro works for each of my 6 workbooks! Q) Why did I NOT NEED to also have this line?... Dim ActSheet as Worksheet -Dennis     

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: Dave Peterson
Date: Jun 3, 2007 14:32

Dave, 1) The active sheet is a worksheet, yes!!!! :) I see that I have edited the 'name' on the worksheet tab, in each of my 6 workbooks, if that makes any difference. And there is a named range on each of the 6 worksheet/workbooks named: "QuoteArea". I have a button on each sheet that I click on, to run the macro. I have 6 workbooks that I look at, one at a time, and I manually click
Show full article (5.98Kb)
Is the active sheet a worksheet or a chart sheet or what????? And if you changed the code, I think it's time to share what you're currently running. dk_ wrote: > > Dave, > > I followed your explanation (just below), and that was what I assumed the > Set line was supposed to work, but I still couldn't get 'ActSheet' to work > in my original macro. Here's what I tried... > > I used     

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: dk_
Date: Jun 3, 2007 13:38

Dave, I followed your explanation (just below), and that was what I assumed the Set line was supposed to work, but I still couldn't get 'ActSheet' to work in my original macro. Here's what I tried... I used your set line... Set ActSheet = ActiveSheet as one of the frist few lines in my original macro, and then I inserted ("ActSheet") in place of ("Ben.xls") as in the following line
Show full article (3.72Kb)
    

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: Dave Peterson
Date: Jun 3, 2007 04:59

Show full article (1.07Kb)
    

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: dk_
Date: Jun 2, 2007 21:49

Show full article (0.65Kb)
    

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: dk_
Date: Jun 2, 2007 20:55

Show full article (8.87Kb)
    

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: Dave Peterson
Date: Jun 2, 2007 19:33

Show full article (7.01Kb)
    

Group: microsoft.public.excel · Group Profile · Search for Actsheets in microsoft.public.excel
Author: dk_
Date: Jun 2, 2007 18:13

Show full article (6.49Kb)
1 · 2 · 3 · next