LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JB JB is offline
external usenet poster
 
Posts: 115
Default Using variables in macro functions

I'm trying to use variables and logic in some of Excel's methods & functions.
I'm not sure how to say this, so I'll use an example.

If I use the Macro record of Excel, and select a range or cell, or say goto
a cell or range I get something like this:

Range("O65").Select
Application.Goto Reference:="R18C5"

What I'd like to be able to do is to use these statements, with cell
addresses that I calculate baseed on my own variables.

Rownum = 5
Colnum = 10

Like in my imagined language, something like:
Range(rownum, colnum).select
Application.Goto Reference:="R"&rownum&"C"&colnum

Does anyone get what I'm saying and know how to do this.

 
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
Copying functions without changing most variables in it Ruleroftheblind Excel Discussion (Misc queries) 3 March 12th 09 04:54 AM
How to dealing with functions with 30+ variables? Darius Excel Worksheet Functions 7 July 25th 08 12:52 AM
LOGICAL FUNCTIONS WITH MULTIPLE VARIABLES luiss Excel Worksheet Functions 3 November 18th 05 04:08 PM
Using variables in SUBTOTAL functions in Excel/VBA Mark Excel Programming 1 January 27th 04 08:53 PM
variables in row and cell functions zeraia Excel Programming 1 October 22nd 03 03:55 PM


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