Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Past directly into TextBox on UserForm

I would like to right click a worksheet cell, copy its
data, open an existing/"homemade" UserForm, select a
TextBox on it, right click, then paste. How? Any ideas
would be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Past directly into TextBox on UserForm

Hi DonB,

Another approach might be to use the RefEdit control (say this is named 'refedit1'), assuming that your macro will be using the cell value as input.

So If you wanted to set a variable (named var1 below) to whatever was in the cell, then say

var1=range(refedit1.text).value

This line will return the value in the cell range selected.

I hope this is helpful.

SuperJas.




----- DonB wrote: -----

I would like to right click a worksheet cell, copy its
data, open an existing/"homemade" UserForm, select a
TextBox on it, right click, then paste. How? Any ideas
would be much appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Past directly into TextBox on UserForm

Hi SuperJaz

I'll give it a try - and try to remember how to
spell "paste"

Thanks DonB


-----Original Message-----
Hi DonB,

Another approach might be to use the RefEdit control (say

this is named 'refedit1'), assuming that your macro will
be using the cell value as input.

So If you wanted to set a variable (named var1 below) to

whatever was in the cell, then say

var1=range(refedit1.text).value

This line will return the value in the cell range

selected.

I hope this is helpful.

SuperJas.




----- DonB wrote: -----

I would like to right click a worksheet cell, copy

its
data, open an existing/"homemade" UserForm, select a
TextBox on it, right click, then paste. How? Any

ideas
would be much appreciated.

.

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
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
Autofill userform textbox Mark Excel Programming 1 November 28th 03 12:57 PM
Code to edit directly in cells from userform Tom Ogilvy Excel Programming 0 September 7th 03 10:27 PM
Code to edit directly in cells from userform Harald Staff[_4_] Excel Programming 0 September 7th 03 10:09 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 11:32 PM.

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"