Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2007

Tip: Looking for answers? Try searching our database.

Variable range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Situmorang - 10 May 2007 12:33 GMT
Hi experts:

How can we combine 2 Sub procedures in VBA, this is my macro which can not
connect one to the  other. My purpose is to assign this 2 subs into one
Autoshape click. If I erase one sub MacCopyRange(), it stuck in the
Selection.statement

Moreover, I want to now the logic of how to make a program using MBA, I want
to know these components of VBA, the  difference between OBJECT,METHOD,
PROPERTY, EVENTS. If anyone can inform me the website explaining them.

Many Thanks

Frank Situmorang
Indonesia

Here is my macro:
Sub AutoShape7_Click()
'
' AutoShape7_Click Macro
' Macro recorded 5/10/2007 by Frank
'

'
   ActiveWindow.SmallScroll ToRight:=-5
   Range("A9:Y1714").Select
   Selection.ClearContents
    Dim x As Object
   For Each x In ActiveWorkbook.Names
   Range(x).Copy
   Sheets("SUMMMARYWBLA").Select
   Range("a65000").End(xlUp).Offset(1, 0).PasteSpecial xlPasteAll
   Next x
   End Sub
S.Y.M. Wong-A-Ton - 12 May 2007 04:18 GMT
Your macro looks very much like you're using Excel. Try posting your question
in the excel newsgroup
(http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.excel.prog
ramming&lang=en&cr=US
),
since this newsgroup is only for InfoPath-related questions.
---
S.Y.M. Wong-A-Ton

> Hi experts:
>
[quoted text clipped - 30 lines]
>     Next x
>     End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.