Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Here is an interesting question

I have created an spreadsheet embedded in a Userform which Get(s)Data from the related workbook. I also have a user form for inputs which change numbers on the workbook. What I am trying to do is have the userform embedded spreadsheet numbers automatically change when a user changes inputs on the other userform which "drives" the workbook

Hopefully this makes sense and I will send a sample of my code later today

Thanks to everyone who responses.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Here is an interesting question

CORRECTION:
frmEmbed.unloa
frmEmbed.sho
must immediately follow whatever code(s) makes the changes to the worksheet. Putting in a change event won't cause an update to your worksheet because cahnge event will occur prior to updates.
----- chris wrote: ----

try something like this

In Input form
sub txtbx1_change(
frmEmbed.unloa
frmEmbed.sho
end su

This will force the form to update with new worksheet data, and it should be pretty seamless to the end user
Do this for all textbox/comboboxes that cause data to change in your worksheet O
ONLY in your command button if change only takes effect after all data is inputted and a button is pressed.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Here is an interesting question

I am a newbie and don't know where to put the code you provided.

I put it in the Sub CommandButton3_Click() code but it said I needed a
object.

The CommandButton3_Click() is the code for changing the worksheet t
the new input which was done in TextBox1.

Any additional assistance is appreciated

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Here is an interesting question

Any suggestions??

Private Sub CommandButton3_Click()

Dim r As Long
PutData

If IsNumeric(RowNumber.Text) Then
r = CLng(RowNumber.Text)

r = r + 1

If r 1 And r <= LastRow Then
RowNumber.Text = FormatNumber(r, 0)

End If

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
need help with an interesting chart jwhigham Charts and Charting in Excel 4 September 24th 09 05:14 PM
an interesting Excel question jaccker Excel Discussion (Misc queries) 2 April 3rd 06 04:21 PM
Interesting Counting Question...HELP onesidered Excel Discussion (Misc queries) 9 August 8th 05 07:27 PM
interesting question can anyone help short_n_curly Excel Discussion (Misc queries) 3 July 20th 05 09:02 PM
An Interesting Excel UserForm Question DennisE Excel Programming 1 December 25th 03 07:22 PM


All times are GMT +1. The time now is 10:57 PM.

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

About Us

"It's about Microsoft Excel"