Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro: Prompt user for xls file to add chart

I have a workbook called 'Source.xls' with a worksheet called 'Char
Data'. In 'Chart Data' I use a macro to generate data for producing
chart. I produce a chart in this worksheet, and then I want to promp
the user whether to also add this chart to another workbook (in
worksheet) - ie in a different xls file. How could I go about doin
this? All I have so far is:

Sub ProduceChart()

'Produce a chart

Dim sPrompt As String
sPrompt = MsgBox("Add this chart to another worksheet?"
Buttons:=vbOKCancel)

If sPrompt = vbOK Then
'Prompt for workbook and worksheet to add chart. This workbook (an
worksheet) may or may not be already open.
End If
End Su

--
Message posted from http://www.ExcelForum.com

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
Prompt For User Mouse Input In Macro? oBis Excel Programming 0 May 6th 04 02:50 PM
Prompt user to save their file Sharon[_5_] Excel Programming 4 September 29th 03 09:44 PM
Prompt user to select file with default file selected dialog Bruce Cooley Excel Programming 0 September 15th 03 06:43 AM
Prompt user to select file with default file selected dialog Bob Phillips[_5_] Excel Programming 0 September 14th 03 09:22 PM
Prompt user to select file with default file selected dialog Bob Phillips[_5_] Excel Programming 0 September 14th 03 09:19 PM


All times are GMT +1. The time now is 01:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"