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

HELP! I'm trying to write a macro that will let the user jump to another
worksheet, select a value in a cell (which may be different each time) and I
would like the macro to input the selection on the original worksheet. The
worksheets are in the same workbook.
--
Lisa
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Writing MACRO

You can reference a cell directly from another worksheet or workbook.
Is that what you want to do? Just type the "=" in the cell you want
to add the value to (we'll call that Worksheet A). Then browse to the
cell in the other worksheet (worksheet B) and click on it.... the
reference to that cell will be in Worksheet A... and any time you
modify the value in Worksheet B the value will also be modified in
Worksheet A.

Sorry if I'm way off track with what you are asking...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Writing MACRO

Have use ever used a userform in VBA. The Refedit feature will allow you to
select a cell in a workbook.

In the VBA window
1) Insert Userform
2) Select Toolbox (hammer and wrench icon)
3) Place Refedit on userform
4) Place command button on userform
5) double click control button so code window opens. Put in code
userform1.hide (returns to main module)

The VBA code is
userform1.Refedit1.show

mycell = userform1.Refedit1.value


"Lisa" wrote:

HELP! I'm trying to write a macro that will let the user jump to another
worksheet, select a value in a cell (which may be different each time) and I
would like the macro to input the selection on the original worksheet. The
worksheets are in the same workbook.
--
Lisa

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
Help writing a macro IcarusFB Excel Programming 8 December 31st 05 11:44 PM
Macro Writing rjamison Excel Programming 0 June 14th 05 12:14 AM
Macro Writing rjamison Excel Programming 0 June 14th 05 12:14 AM
VBA-writing a macro Don Guillett[_4_] Excel Programming 1 August 31st 04 01:49 PM
Macro Writing Help? Richard[_22_] Excel Programming 2 December 31st 03 07:39 PM


All times are GMT +1. The time now is 06:54 AM.

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"