Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Select a cell

'I want to set thye selected cell on sheet1 without having to select the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Select a cell

Hi Rob

maybe if you can tell us what you're trying to achieve we'll be able to come
up with an alternative method - because "select" is the same thing as you
clicking on a cell - and you can't click on a cell in a sheet that isn't
selected.

Cheers
JulieD

"Rob" wrote in message
...
'I want to set thye selected cell on sheet1 without having to select the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob



  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Select a cell

ok: Excel remembers what you last had selected on a sheet. I'm going to
send several sheets out as a report. With my macro, I copy-paste values
without selecting the sheet, which changes what excel is remembering. Now
when the person receives the report, and activates the sheet, the whole sheet
is selected. Instead of this I'd like just cell A1 to be selected. I could
use screenupdating, but I'd rather do it without ever having to activate the
sheet, even invisibly.


"JulieD" wrote:

Hi Rob

maybe if you can tell us what you're trying to achieve we'll be able to come
up with an alternative method - because "select" is the same thing as you
clicking on a cell - and you can't click on a cell in a sheet that isn't
selected.

Cheers
JulieD

"Rob" wrote in message
...
'I want to set thye selected cell on sheet1 without having to select the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Select a cell

Hi Rob

you could put a code against a worksheet_activate event so that when they
select the sheet the cursor goes to cell A1.
e.g.

Private Sub Worksheet_Activate()
Range("A1").Select
End Sub

-will this solve your problem?

Cheers
JulieD


"Rob" wrote in message
...
ok: Excel remembers what you last had selected on a sheet. I'm going to
send several sheets out as a report. With my macro, I copy-paste values
without selecting the sheet, which changes what excel is remembering. Now
when the person receives the report, and activates the sheet, the whole
sheet
is selected. Instead of this I'd like just cell A1 to be selected. I
could
use screenupdating, but I'd rather do it without ever having to activate
the
sheet, even invisibly.


"JulieD" wrote:

Hi Rob

maybe if you can tell us what you're trying to achieve we'll be able to
come
up with an alternative method - because "select" is the same thing as you
clicking on a cell - and you can't click on a cell in a sheet that isn't
selected.

Cheers
JulieD

"Rob" wrote in message
...
'I want to set thye selected cell on sheet1 without having to select
the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob






  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Select a cell

.....not really, that will mean cell A1 gets selected every time the user goes
to the sheet. I only want it to be selected the first time the user goes
into the report, as if I'd selected the cell before sending the report.

"JulieD" wrote:

Hi Rob

you could put a code against a worksheet_activate event so that when they
select the sheet the cursor goes to cell A1.
e.g.

Private Sub Worksheet_Activate()
Range("A1").Select
End Sub

-will this solve your problem?

Cheers
JulieD


"Rob" wrote in message
...
ok: Excel remembers what you last had selected on a sheet. I'm going to
send several sheets out as a report. With my macro, I copy-paste values
without selecting the sheet, which changes what excel is remembering. Now
when the person receives the report, and activates the sheet, the whole
sheet
is selected. Instead of this I'd like just cell A1 to be selected. I
could
use screenupdating, but I'd rather do it without ever having to activate
the
sheet, even invisibly.


"JulieD" wrote:

Hi Rob

maybe if you can tell us what you're trying to achieve we'll be able to
come
up with an alternative method - because "select" is the same thing as you
clicking on a cell - and you can't click on a cell in a sheet that isn't
selected.

Cheers
JulieD

"Rob" wrote in message
...
'I want to set thye selected cell on sheet1 without having to select
the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob








  #6   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Select a cell

.....not really, that will mean cell A1 gets selected every time the user goes
to the sheet. I only want it to be selected the first time the user goes
into the report, as if I'd selected the cell before sending the report.

"JulieD" wrote:

Hi Rob

you could put a code against a worksheet_activate event so that when they
select the sheet the cursor goes to cell A1.
e.g.

Private Sub Worksheet_Activate()
Range("A1").Select
End Sub

-will this solve your problem?

Cheers
JulieD


"Rob" wrote in message
...
ok: Excel remembers what you last had selected on a sheet. I'm going to
send several sheets out as a report. With my macro, I copy-paste values
without selecting the sheet, which changes what excel is remembering. Now
when the person receives the report, and activates the sheet, the whole
sheet
is selected. Instead of this I'd like just cell A1 to be selected. I
could
use screenupdating, but I'd rather do it without ever having to activate
the
sheet, even invisibly.


"JulieD" wrote:

Hi Rob

maybe if you can tell us what you're trying to achieve we'll be able to
come
up with an alternative method - because "select" is the same thing as you
clicking on a cell - and you can't click on a cell in a sheet that isn't
selected.

Cheers
JulieD

"Rob" wrote in message
...
'I want to set thye selected cell on sheet1 without having to select
the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Select a cell

Maybe I've misunderstood what you are trying to do. Why can't you just enter
code for the macro to select cell A1 before it's done running? Copy & paste
everything, then select cell A1, do whatever else you want, and end the macro
where you want.

You could also set the values of the cells rather than copy & paste which
may accomplish what you want without selecting the entire sheet.

"Rob" wrote:

....not really, that will mean cell A1 gets selected every time the user goes
to the sheet. I only want it to be selected the first time the user goes
into the report, as if I'd selected the cell before sending the report.

"JulieD" wrote:

Hi Rob

you could put a code against a worksheet_activate event so that when they
select the sheet the cursor goes to cell A1.
e.g.

Private Sub Worksheet_Activate()
Range("A1").Select
End Sub

-will this solve your problem?

Cheers
JulieD


"Rob" wrote in message
...
ok: Excel remembers what you last had selected on a sheet. I'm going to
send several sheets out as a report. With my macro, I copy-paste values
without selecting the sheet, which changes what excel is remembering. Now
when the person receives the report, and activates the sheet, the whole
sheet
is selected. Instead of this I'd like just cell A1 to be selected. I
could
use screenupdating, but I'd rather do it without ever having to activate
the
sheet, even invisibly.


"JulieD" wrote:

Hi Rob

maybe if you can tell us what you're trying to achieve we'll be able to
come
up with an alternative method - because "select" is the same thing as you
clicking on a cell - and you can't click on a cell in a sheet that isn't
selected.

Cheers
JulieD

"Rob" wrote in message
...
'I want to set thye selected cell on sheet1 without having to select
the
sheet. Anyone know how?

sheet1.select
sheet1.cells.select
sheet2.select
sheet1.cells(1,1).select 'won't let me do this.

Thanks
Rob






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
VBA: Column Select then Data Select then return to cell A1 James C[_2_] Excel Discussion (Misc queries) 3 February 1st 10 11:35 AM
Using formulas to select cells (Ex: Select every nth cell in a col Lakeview Photographic Services Excel Discussion (Misc queries) 2 March 15th 07 02:17 PM
How to point to (select) a cell to the left from a cell where I enter the = equal sign? Dmitry Excel Discussion (Misc queries) 4 June 30th 06 06:49 AM
I cannot select a single cell or pull down cell contents Carolyn Fahm Excel Worksheet Functions 0 January 24th 06 04:54 PM
Select cell, Copy it, Paste it, Return to Previous cell spydor Excel Discussion (Misc queries) 1 December 30th 05 01:29 PM


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