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

Hi,

I have a problem with calculating.

i have:
- worksheet1 with
- vba code calculating certain cells in a selection_change section sub.
- userform 1 in which the user can input date that is then transferred tot
sheet1

The problem is that, in sheet1,all fields are calculated when i go from 1
textbox to another on the userform excpt the cells that are calculated in
the selection_change sub of sheet1 because there is no selection_change in
sheet one.

How can I have the code in the sub selection_change executed when i move
from one textbox to another on the userform ?

Thanks !!!!
Jean-Pierre


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default problem calculate

Use the Exit events of the Textboxes to run the code to recalculate.

SelectionChange only pertains to the worksheet.

--
Regards,
Tom Ogilvy



"Jean-Pierre" wrote in message
...
Hi,

I have a problem with calculating.

i have:
- worksheet1 with
- vba code calculating certain cells in a selection_change section

sub.
- userform 1 in which the user can input date that is then transferred tot
sheet1

The problem is that, in sheet1,all fields are calculated when i go from 1
textbox to another on the userform excpt the cells that are calculated in
the selection_change sub of sheet1 because there is no selection_change in
sheet one.

How can I have the code in the sub selection_change executed when i move
from one textbox to another on the userform ?

Thanks !!!!
Jean-Pierre




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default problem calculate

Hi,

Thanks for your input but now i have to make a code for every textbox
item in the userform. I have some 30 textboxes that the user can fill
out.

Any suggestion on how to make a code that is executed every time one of
the textboxes is changed by the user?

Thanks,
Pierre



*** Sent via Developersdex http://www.developersdex.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
problem with a function to calculate weighted test score Drew P. Excel Worksheet Functions 2 September 17th 09 12:55 PM
calculate problem in excel Ohmega Excel Worksheet Functions 5 July 8th 05 12:06 AM
Problem with .Calculate Boris Merryweather Excel Programming 3 June 30th 04 12:18 PM
Excel VBA Calculate Problem DeepThought Excel Programming 2 January 7th 04 08:42 PM
Problem to calculate cells Ben.c Excel Programming 2 December 29th 03 10:16 AM


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