Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

New VB6 user


  • Please log in to reply

#1
Robert Dunn

Robert Dunn

    New Member

  • Member
  • Pip
  • 2 posts
I am a new user of excel VB and would be very grateful if
someone could help me with my first excel macro .

Specifications

I have a list of items each with a consecutive item reference number .

Example

REF ITEM
2(cell c 2) cup
3 (c 3) glass
? (c 4) knife

I require a macro as follows for the reference of item "knife"

-Put cursor in cell c4
-Select macro
-Macro takes the item ref above ie 3 and adds 1 =4 in formula form ie =1+c3
-The reference then equals 4
-The rows between the item ref vary but are always blanks.

My Suggestion
I have come up with the following but unfortunately
the item reference loses the formula. ie becomes =4 not =1+c3

ActiveCell.Formula = "= 1+" & Selection.End(xlUp)

Any help would be appreciated to perfect my first macro

best regards
ROBERT DUNN
www.e-ffe.com
[email protected]

Edited by Robert Dunn, 13 July 2005 - 01:54 AM.

  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP