/    Sign up×
Community /Pin to ProfileBookmark

Visual Basic / Excel Macros

Hi All

Im trying to run a macros in Excel that automatically prints multiple different documents.

At the moment each document is linked to the excel spreadsheet by hyperlinks.

The following visual basic code was generated by the macro:

[CODE]
Sub printoverview()

‘ printoverview Macro
‘ Macro recorded 09/02/2006 by Peter


Range(“C6:D6”).Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Application.WindowState = xlNormal
Range(“C7:D7”).Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Application.WindowState = xlNormal
Range(“C8:D8”).Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Application.WindowState = xlNormal
End Sub
[/CODE]

At the moment all this code does is open up each document.

Does anyone know either of the following:

a) how to update this code so that it performs the function of printing each document (preferably by either not opening the word documents or by closing them once printed) by a simply click of a link?

b) a visual basic forum that would be better in assisting me with this problem?

c) how to use excels create macro to achieve the required result?

Any help is much appreciated.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@ErolinDesignsFeb 09.2006 — Try http://www.ozgrid.com/forum

I am a regular there with helping in Excel to Access macros, but they would be more adapt to your situation.

HTH.
×

Success!

Help @peteyb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...