Kamis, 22 September 2011

RE: [ExcelVBA] Clarification on print command in Vista (Excel VBA)

 

Option 1 - Could you include the whole of the sub or at least enough so we can your Dim statements and get some feeling for the context.

Option 2 - After the cname1= statement put

Debug.Print cname1

and check that it is producing what you expect in the immediate window

Option 3 - What happens when you run the macro? Do you get an error message? Put a breakpoint on the cname= statement and see if it is getting there at all.

Best Regards
David Grugeon
Excel VBA Group Moderator

-----Original Message-----
From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com] On Behalf Of Raghavan Manikandan
Sent: Monday, 19 September 2011 2:13 PM
To: ExcelVBA@yahoogroups.com
Subject: Re: [ExcelVBA] Clarification on print command in Vista (Excel VBA)

HI Friends,

Could anyone help me on the below issue?

Thanks & Regards
Manikandan Raghavan

--- On Fri, 9/16/11, Raghavan Manikandan <geethanjali_mani@yahoo.com> wrote:

From: Raghavan Manikandan <geethanjali_mani@yahoo.com>
Subject: [ExcelVBA] Clarification on print command in Vista (Excel VBA)
To: ExcelVBA@yahoogroups.com
Date: Friday, September 16, 2011, 7:01 PM

HI Team,

I have used the below command to directly send the chart / range of work sheet to be printed out. When I use windows XP, I dont find any issue and its moving to printer pool. But the same command is not working when I use Windows Vista.

Could anyone help me on the above issue?

cname = UserForm1.ComboBox1.Text 'getting the chart / Range from combo box
cname1 = Mid$(cname, 13, 8) 'getting the correct chart name for printing Sheet1.ChartObjects(cname1).Chart.PrintOut 'sending out for print out

Thanks & Regards
Manikandan Raghavan

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

------------------------------------

----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------Yahoo! Groups Links

__._,_.___
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar