Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA Dialog Box --

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default VBA Dialog Box --

Perhaps if you explained your objective, someone could offer an alternative
method. What you have described does not seem practical since after the
macro begins, copying and pasting becomes a little sticky. The key term
matrix implies a set of values that may interact with each other. Pasting a
matrix into a dialog box will only create a text entry without any
interactive capability other than as a value of the dialog box per se. So
think about it and see if you can explain what your end quality product
should be.

"JoLeigh" wrote:

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default VBA Dialog Box --

hi
see this site
http://contextures.com/xlUserForm01.html

regards
FSt1

"JoLeigh" wrote:

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default VBA Dialog Box --

Assuming the list of numbers to copy is in a range of cells.

Dim srng As Range
Set srng = Application.InputBox(prompt:= _
"Select The Range of Cells", Type:=8)

now do something with the values from srng


Gord Dibben MS Excel MVP

On Wed, 28 Jan 2009 06:53:01 -0800, JoLeigh
wrote:

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA Dialog Box --

I'm creating an excel tool that will manipulate data from the user and am
using VBA to develop the front end and back end.
One input will be a pivot table created from an Access database that
provides information for each hour of each day -- i.e. a 24 x 7 matrix.
Does this make sense?
Thanks.

"JLGWhiz" wrote:

Perhaps if you explained your objective, someone could offer an alternative
method. What you have described does not seem practical since after the
macro begins, copying and pasting becomes a little sticky. The key term
matrix implies a set of values that may interact with each other. Pasting a
matrix into a dialog box will only create a text entry without any
interactive capability other than as a value of the dialog box per se. So
think about it and see if you can explain what your end quality product
should be.

"JoLeigh" wrote:

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA Dialog Box --

I'll try it -- thanks.

"Gord Dibben" wrote:

Assuming the list of numbers to copy is in a range of cells.

Dim srng As Range
Set srng = Application.InputBox(prompt:= _
"Select The Range of Cells", Type:=8)

now do something with the values from srng


Gord Dibben MS Excel MVP

On Wed, 28 Jan 2009 06:53:01 -0800, JoLeigh
wrote:

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default VBA Dialog Box --

I thihk you would be better off just putting the Access data into a grid on a
worksheet and working from there rather than trying to use a dialog box.
But, there are those wiser than me that could have a better recommendation.
My reasoning is that there is no way known to me that you can controll the
individual values of the grid if you put them in a text frame, a multipage or
any other type control, except possibly a combobox. But even in the combobox
you would have to use some complex code to pick out the individual values and
work with them. I just think that it is much easier to work with a matrix
from a worksheet grid.



"JoLeigh" wrote:

I'm creating an excel tool that will manipulate data from the user and am
using VBA to develop the front end and back end.
One input will be a pivot table created from an Access database that
provides information for each hour of each day -- i.e. a 24 x 7 matrix.
Does this make sense?
Thanks.

"JLGWhiz" wrote:

Perhaps if you explained your objective, someone could offer an alternative
method. What you have described does not seem practical since after the
macro begins, copying and pasting becomes a little sticky. The key term
matrix implies a set of values that may interact with each other. Pasting a
matrix into a dialog box will only create a text entry without any
interactive capability other than as a value of the dialog box per se. So
think about it and see if you can explain what your end quality product
should be.

"JoLeigh" wrote:

I'd like to create a dialog box in which the user would input a matrix of
numbers. I'd like the user to be able to copy and paste this information
rather than type in each entry individually.

I'm a VBA Newbie and clueless.

Thanks much,
JoLeigh

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
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
How to permanently change Dialog Caption while in the Dialog MikeZz Excel Programming 2 July 11th 06 04:53 PM
How to permanently change Dialog Caption while in the Dialog MikeZz Excel Programming 0 July 11th 06 04:14 PM
Go To Dialog box Susan Dinishak Excel Discussion (Misc queries) 2 June 3rd 06 05:29 PM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM


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