Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default how do I prompt the user to select a cell?

Hello,
please can someone help me with the following ...

My macro needs to ask the user which worksheet column they want
totalled. I could use InputBox to ask them to supply the letter of
the column but I would prefer it if they could click on a cell in the
column they choose. Eg in response to a macro prompt they click on
G4 and the macro then totals the G column.

Your help would be appreciated.

Cath

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default how do I prompt the user to select a cell?

Cath

'your code here

Set srng = Application.InputBox(prompt:= _
"Select G4 or any other cell", Type:=8)

'rest of code to do something with the selection


Gord Dibben MS Excel MVP

On 19 Dec 2006 15:14:22 -0800, wrote:

Hello,
please can someone help me with the following ...

My macro needs to ask the user which worksheet column they want
totalled. I could use InputBox to ask them to supply the letter of
the column but I would prefer it if they could click on a cell in the
column they choose. Eg in response to a macro prompt they click on
G4 and the macro then totals the G column.

Your help would be appreciated.

Cath


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 do I prompt a user to update a cell in Excel? martb Excel Discussion (Misc queries) 1 September 12th 05 01:43 PM
How do I prompt a user to update a cell value (ie the date)? martb Excel Worksheet Functions 1 September 8th 05 11:33 PM
Prompt user to select file with default file selected dialog Bruce Cooley Excel Programming 0 September 15th 03 06:43 AM
Prompt user to select file with default file selected dialog Bob Phillips[_5_] Excel Programming 0 September 14th 03 09:22 PM
Prompt user to select file with default file selected dialog Bob Phillips[_5_] Excel Programming 0 September 14th 03 09:19 PM


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