Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Input Box problem

I have an Excel macro that is used to format an Excel spreadsheet. As part
of the macro an InputBox is used to get the date of the next meeting from the
user (and then this date is used to populate one of the columns in the
spreadsheet. This macro works great when run directly.

I want to run this macro from Access (so that the data can be exported and
formatted automatically). When the InputBox pops up and I start to type in
it, this error pops up:
This action cannot be completed because the application() is not responding.
Choose Switch To to activate and correct the problem.

I can click on "Switch To" and continue, but that is not the result that I
want. Is there any way to avoid this error?

Thank you for your help,
Judy
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Input Box problem

Thank you for responding.

It dawned on my that I could use an Access query parameter to prompt the
user for the date to use. Now the date is already in the spreadsheet and the
macro runs just fine.

Thank you,
Judy

"Gary L Brown" wrote:

Does this Access code snippet help?
'Set a reference to 'Microsoft Excel x.x Object Library'
'/===============================/
Dim XL As Excel.Application
Dim varAnswer As Variant
Set XL = New Excel.Application
varAnswer = _
XL.Application.InputBox("Text Test: ", , , , , , , 2)
Set XL = Nothing
'/===============================/

HTH,
--
Gary Brown

If this post was helpful, please click the ''''Yes'''' button next to
''''Was this Post Helpfull to you?".


"Judy Ward" wrote:

I have an Excel macro that is used to format an Excel spreadsheet. As part
of the macro an InputBox is used to get the date of the next meeting from the
user (and then this date is used to populate one of the columns in the
spreadsheet. This macro works great when run directly.

I want to run this macro from Access (so that the data can be exported and
formatted automatically). When the InputBox pops up and I start to type in
it, this error pops up:
This action cannot be completed because the application() is not responding.
Choose Switch To to activate and correct the problem.

I can click on "Switch To" and continue, but that is not the result that I
want. Is there any way to avoid this error?

Thank you for your help,
Judy

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
Problem when input Chinese in Excel 2003 Matthew[_3_] Excel Discussion (Misc queries) 0 September 10th 07 03:45 AM
Input from Access - formatting problem Jeff Excel Discussion (Misc queries) 3 November 7th 05 04:19 AM
chinese input problem jj Excel Discussion (Misc queries) 0 July 25th 05 07:34 AM
variable/Input box problem [email protected] Excel Programming 2 April 13th 05 01:31 PM
User Form/Input box problem Peter[_39_] Excel Programming 1 April 21st 04 10:37 PM


All times are GMT +1. The time now is 02: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"